delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/16/04:47:43

From: Hartmut Schirmer <hsc AT techfak DOT uni-kiel DOT de>
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: <m0xL61M-000S1mC AT inti DOT gov DOT ar>
NNTP-Posting-Host: zora.techfak.uni-kiel.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Salvador Eduardo Tropea (SET) wrote:
> Well the situation is the reverse! Using this code to generate
> the array:
> 
> #include <stdio.h>
> 
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019