Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* other gcc problem
@ 1996-05-14 17:40 Harald Koenig
  1996-05-14 21:56 ` Richard Henderson
  1996-05-15  6:46 ` Richard Henderson
  0 siblings, 2 replies; 6+ messages in thread
From: Harald Koenig @ 1996-05-14 17:40 UTC (permalink / raw)


compiling PEX support for X11 I found another strange problem with gcc.
the compilation of 

	xc/programs/Xserver/PEX5/ddpex/mi/level4/miWks.c

with anything but "-O0" takes >800 seconds on a XL266,  "-O0" takes only
~3 seconds  and on my i486 "gcc -O2" takes ~9 seconds.

this file is ~65k large, a cpp'ed source file is ~140k in 5500 lines
with nothing special.

any idea?  anyone wants this source file to check ?

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: other gcc problem
@ 1996-05-14 20:57 David Mosberger
  0 siblings, 0 replies; 6+ messages in thread
From: David Mosberger @ 1996-05-14 20:57 UTC (permalink / raw)


Does that file have a large initialized array, by any chance?
I noticed that initialized arrays seem to take O(N^2) memory.
An initialized array of several thousand entries is gonna blow
away 32MBs of memory just like nothing with gcc (that's one reason
MILO generates an assembly file instead).  I think that has been a
problem ever since c++ support was added.

	--david

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <199605142057.NAA05396@web.azstarnet.com>]

end of thread, other threads:[~1996-05-15  6:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-14 17:40 other gcc problem Harald Koenig
1996-05-14 21:56 ` Richard Henderson
1996-05-14 23:01   ` Harald Koenig
1996-05-15  6:46 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-05-14 20:57 David Mosberger
     [not found] <199605142057.NAA05396@web.azstarnet.com>
1996-05-14 21:36 ` Harald Koenig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox