Memory layout of a c program -


i reading article http://www.geeksforgeeks.org/memory-layout-of-c-program/, said " uninitialized variable stored in bss", "initialized variable stored in data segment"

my question why need have 2 separate segments variables? 1. bss 2. data segment?

why not put 1 segment?

bss takes no space in program image. indicates how large bss section , runtime set memory zero.

the data section filled initial values variables takes space in program image file.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -