This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A question about the global variables initialization.
- From: Eric Fisher <joefoxreal at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 20 Dec 2005 15:02:50 +0800
- Subject: A question about the global variables initialization.
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.