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
- To: Charles Manning <manningc2@xxxxxxxxxxxxx>
- Subject: Re: [arm-gnu] zeroing out the .bss area
- From: JJ <alchemistmba@xxxxxxxxx>
- Date: Tue, 3 Nov 2009 15:50:16 -0800
> No. That is entirely correct.
Incorrect?
>
> 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
Shouldn't these variables have the "static" prefix? Variables within
functions that don't have the "static" prefix aren't added to this
area correct?
What about class variables?
class abc {