This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Initialization of zero globals
- From: Ian Lance Taylor <iant at google dot com>
- To: Alexander Grobman <agrobman at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 21 Dec 2006 20:11:34 -0800
- Subject: Re: Initialization of zero globals
- References: <414607.83114.qm@web83113.mail.mud.yahoo.com>
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