On Sun, Oct 30, 2005 at 05:59:15PM +0100, Matthias Klose wrote: > Jose Carlos Medeiros writes: > > With g++4 , a lot of memory was dispended and program do not compile. > > it's disappointing that neither you nor the original bug submitter > don't provide any more information. I'm sorry, I didn't have time to look at it at that time. > - preprocessed source See attachement. > - command line arguments g++ -fno-exceptions -g -O2 -c GBA.i It seems to require atleast 1.75 GB, after that it seems to stay constant, but it's going really slow (using less then 1% CPU because it's swapping all the time.) I stopped it after 30 minutes / 2 minutes cpu time. The last 15 minutes didn't memory usage didn't change. The same results can be get with: g++-4.0 -g -O1 -c GBA.i but works with: g++-4.0 -O1 -c GBA.i (Only requires 600 MB of RAM) g++-4.0 -g -O0 -c GBA.i (160 MB) Using gcc-snapshot 20051023-1 after 5 minutes it's at 0.9 GB, stays there being starved by swapping until 15 minutes (2.5 minutes cpu time so far), then starts to grow again (no idea to how much), and then finnishes about 15 seconds later. So seems to only require half the RAM. g++-3.4 only seems to require 500 MB of RAM, g++-3.3 only 170 MB. > - wether increasing the amount of RAM helps. 1GB is not that unreasonable I don't even have that much here, but got 4GB of swap, so it takes ages for it got get any memory above 1 GB. After 15 minutes it's a 1.75 GB, and had used 2 minutes of CPU time, after 30 minutes it's still the same. The file seems to generate alot of code, and wants it all inlined and things like that. Kurt
Attachment:
GBA.i.bz2
Description: Binary data