This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bss section not getting zero-initialised vars


> Yes, this is true.  gcc doesn't have the optimization where we move
> zero inited things into bss.

Yes, and there's a good reason historical for this.  Providing an
initialization is a (reasonably portable) way to force the variable
into the data section, where it can then be edited in the binary.


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]