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]
Other format: [Raw text]

Re: = {0} in bss?


On Tuesday 22 August 2006 20:14, Mike Stump wrote:
> I hate to even bring this up, but...  should things like:
>
>    int m[1 << 27] = {0};
>
> be put in .bss?   I'm tempted to say no, if you want that, you have to
> remove {0}.

What makes you say this?

Given that C requires global variables without explicit initialisers be zero 
initialised I would find it surprising if adding explicit zero initialisation 
effected my program in any way.

Paul


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