delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/01/05:51:32

From: Martin DOT Stromberg AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Recently installed version of DJGPP's gcc hangs
Date: 28 Sep 1998 08:49:06 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 15
Message-ID: <6unii2$l29$1@antares.lu.erisoft.se>
References: <6umr47$t1$1 AT nnrp1 DOT dejanews DOT com>
NNTP-Posting-Host: spica-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

jtgalkowski AT alum DOT mit DOT edu wrote:
: The file has been diagnosed by Mr Eli Zaretskii as "a huge
: 'switch' statement with a lot of cases."  Moreover, he
: goes on to say "Such sources are known to require
: preposterous amounts of memory while GCC compiles them,
: and also a lot of stack space."

Two suggestions: turn down optimisation level or change the code to two
or more switch statements ("if(i<100) { switch(i) ... } else { switch(i) 
... }").


Right,

							MartinS

- Raw text -


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