Re: [arm-gnu] zeroing out the .bss area
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] zeroing out the .bss area



Correction. There was a missing NOT in my last posting.


On Wednesday 04 November 2009 11:02:24 Mark Mitchell wrote:
> JJ wrote:
> > So as long as I don't expect unintialized global and statically
> > allocated variables to be 0, I'm fine?
>
> Yes.


No. That is NOT entirely correct.

A statically allocated variable that is initialised to zero will end up in bss 
too.

int foo=1; // .data
int bar=0; // .bss
int uninitilised_var; //.bss