This is the mail archive of the
mailing list for the GCC project.
.data and .bss section
- From: "mohanlal jangir" <mohanlaljangir at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 28 Mar 2006 13:09:45 +0530
- Subject: .data and .bss section
Why does gcc put initialized data in .data section and uninitialized data in
bss section? Does it provide any optimization? Also, normally gcc
initializes global data to zero then what kinds of data go to .bass section?
An example would be appreciated.
P.S. - Please CC replies to me. I am not subscribed to the list.