Discussion about this post

User's avatar
Sukumar Kavishan's avatar

Great article is there a seperate data section or both BSS and non BSS collectively known as data section

Expand full comment
Igor's avatar

Great article! Just found one little issue. The sentence: "If you declare a statically allocated variable, such as int array[100];the size of the executable will indeed increase by the size of the array" is not entirely correct as far as I know. The size of the executable will increase only by a few bytes because it will only store the size of the array in the executable but when system loads the executable its RAM image will indeed be larger by the size of the array because it will read the size from BSS segment and allocate that much additional memory for the process.

Expand full comment
1 more comment...

No posts