Initialization of zero globals

Ian Lance Taylor iant@google.com
Fri Dec 22 04:13:00 GMT 2006


Alexander Grobman <agrobman@yahoo.com> writes:

> Is there any way (an option) to instruct gcc to use
> initializations for global variables, which are not
> declared as initialized? By default GCC places such
> variables to .BSS, but C considers such variables be 0
> before program execution and thus these had to be
> initialized in crt0.

-fno-zero-initialized-in-bss

Ian



More information about the Gcc-help mailing list