Article View: gnu.gcc.help
Article #46519Global variables initialized (or not)?
From: mgilalg
Date: Thu, 10 Nov 1994 12:20
Date: Thu, 10 Nov 1994 12:20
18 lines
1241 bytes
1241 bytes
Hallo
When I compile test.c (at the bottom) with GCC 1.12 it seems that it
initializes the global variable, and produces an executable size according to
the size of the global variable. When I use GCC 1.09 it does not do that.
Regards, Louis
test.c
/*************************/
float f[1000000];
int main(void){
return 0;
}
/*************************/
GCC V1.12 produces a.out as aproximate 4Mb while
GCC V1.09 produces a.out as aproximate 40Kb
Technical Details
Message-ID:
<mgilalg.6.2EC1F345@puknet.puk.ac.za>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!aix11.hrz.uni-oldenburg.de!uniol!caty.ol.sub.de!shlink.shn.com!news.maz.net!pipex!howland.reston.ans.net!quagga.ru.ac.za!pukrs7.puk.ac.za!mgilalg.puk.ac.za!mgilalgShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,584ba1d81c5dc1b4,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-11 08:11:10 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!aix11.hrz.uni-oldenburg.de!uniol!caty.ol.sub.de!shlink.shn.com!news.maz.net!pipex!howland.reston.ans.net!quagga.ru.ac.za!pukrs7.puk.ac.za!mgilalg.puk.ac.za!mgilalg From: mgilalg@puknet.puk.ac.za Newsgroups: gnu.gcc.help Subject: Global variables initialized (or not)? Date: Thu, 10 Nov 1994 12:20:26 Organization: University of Potchefstroom Lines: 18 Message-ID: <mgilalg.6.2EC1F345@puknet.puk.ac.za> NNTP-Posting-Host: mgilalg.puk.ac.za X-Newsreader: Trumpet for Windows [Version 1.0 Rev Final Beta #8]