From: Hartmut Schirmer Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC uses A LOT of memory to parse static arrays Date: Thu, 16 Oct 1997 08:33:37 +0200 Organization: Technische Fakultaet, University of Kiel, Germany Lines: 32 Message-ID: <3445B541.15E5@techfak.uni-kiel.de> References: NNTP-Posting-Host: zora.techfak.uni-kiel.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Salvador Eduardo Tropea (SET) wrote: > Well the situation is the reverse! Using this code to generate > the array: > > #include > > int main(int argc, char *argv[]) > { > int i; > printf("unsigned char x[]={\n"); > for (i=0; i<182520; i++) > { > printf("%d",i % 256); > if (i!=182519) > printf(","); > if ((i % 20)==19) > printf("\n"); > } > printf("};\n"); > return 0; > } > GCC aborted with a SIGSEGV for me. GCC on Solaris finished but swapped a lot. Hartmut -- Hartmut Schirmer | Phone: +49-431-77572-709 FAX:-703 Automatisierungs- & Regelungstech. | hsc AT techfak DOT uni-kiel DOT de Technische Fakult"at, | http://www.techfak.uni-kiel.de/~hsc Kaiserstr. 2, 24143 Kiel, Germany | PGP key via WWW, Key ID:6D84AEC1