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



> 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 {