This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Initialization of zero globals
- From: Alexander Grobman <agrobman at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Dec 2006 19:38:17 -0800 (PST)
- Subject: Initialization of zero globals
Hi,
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.
Earlier versions of GCC initialized such variables as
initialized globals, placing "0" together with
initializers.
I'll appreciate your help very much..
Alex.