A question about the global variables initialization.

Eric Fisher joefoxreal@gmail.com
Tue Dec 20 07:17:00 GMT 2005


Hello,
For such a program,
int a=0;
int main(void)
{
  ...
}
We will see the compiler put the variable 'a' into the bss section.
That means that 'a' is a non-initialized variable. I don't know if this
 is the gcc's strategy.

Happy Christmas.

Eric.



More information about the Gcc mailing list