public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/984: GCC cannot efficently initialize a big array
@ 2002-03-20 2:54 jason
0 siblings, 0 replies; 2+ messages in thread
From: jason @ 2002-03-20 2:54 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, wscott
Synopsis: GCC cannot efficently initialize a big array
State-Changed-From-To: open->analyzed
State-Changed-By: jason
State-Changed-When: Wed Mar 20 02:54:39 2002
State-Changed-Why:
The C frontend was modified several years ago to handle large initializers like this efficiently, but nobody has ported the changes to the C++ frontend. Until that happens, you could compile your array in a separate C source file.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=984
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/984: GCC cannot efficently initialize a big array
@ 2002-11-10 12:59 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-11-10 12:59 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, wscott
Synopsis: GCC cannot efficently initialize a big array
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Sun Nov 10 12:59:54 2002
State-Changed-Why:
Someone seems to have ported the C part to C++. With today's
CVS, I see (for only 5000 elements):
tmp/g> perl bigarry.pl > x.cc
tmp/g> cp x.cc x.c
tmp/g> time /home/bangerth/bin/gcc-3.3x-pre/bin/gcc -c x.c
real 0m24.119s
user 0m10.600s
sys 0m0.520s
tmp/g> time /home/bangerth/bin/gcc-3.3x-pre/bin/gcc -c x.cc
real 0m31.587s
user 0m14.330s
sys 0m0.550s
And I get a peak memory use of 140MB for the C front end
and 175 MB for the C++ front end. This seems to be in the
usual range of increase when moving from C to C++.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=984
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-10 20:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-20 2:54 c++/984: GCC cannot efficently initialize a big array jason
2002-11-10 12:59 bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).