Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: Ray <ra...@gu...> - 2002-12-10 08:11:05
|
Hm, I did a little test with -O0, -O1, -O2, and -O3 on this 1 file that takes forever to compile. -O0: 12 seconds -O1: 46 seconds -O2: 1 minute 15 seconds -O3: 4 minutes 40 seconds (times are approximate) using this command-line: date ; c++ -c -D_POSIX -Wall -DDarwin -D_BIGENDIAN -fpascal-strings -O2 -fomit-frame-pointer -ffast-math -mdynamic-no-pic -DIMAGE_DIR=\"images\" -DTEXTURE_DIR=\"textures\" -DC3D_ENABLED -I../../vendetta2/oe -I../../gk -I../../vendetta2 -o bin.macosxppc.release/cradar.o gkobjects/cradar.cpp ; date This is on my state-of-the-art ;) g3-350 mac with osX and gcc3.1 optimizing sure takes a long time for some reason on this file. It uses stl::vector and it doesn't use that for very much. It does use one of our home-brew templates though. But other files using that same template doesn't take that long to compile. It also does a fair amount of 3d math and calls a bunch of virtual functions. I just don't get it. Oh well, I'm going to sleep now. - Ray Ray wrote: > I guess I should say that my mac is a g3-350 with gcc3. I think that's > why it takes like 45 minutes to compile. > We also get the compiler to generate an internal compiler error on a > couple of our files. > > 420 .h files (1.7 megs) > 455 .cpp files (4.0 megs) > 140 .c files (2.5 megs) (mostly libpng/zlib/libjpg) > > my win32 machine is a athlon 1700+ in win2k > linux box is pIII-450 with gcc 2.9something > mac box is g3-350 w/os10.2 gcc3 > So that's not really comparing oranges to oranges. > > We use Jam for mac and linux. BUT we don't use the built-in version of > Jam on the mac because its internal Jamrules are not compatible with a > couple of things we do. (I'm not quite sure what, because I wasn't the > one to get it working) > We also have a problem with it not correctly generating dependancies for > a few files so it doesn't compile them when it should. > I also can't figure out how to force Jam to compile a specific .cpp file > for me. It's pretty much either the main target app or nothing. > > We were just playing around with trying to get things to compile faster > and found that gcc3.x is much slower than gcc 2.x. > > I also discovered gcc(at least on the mac) has some form of precompiled > header support which I didn't try to use yet. > > All I can say is gcc is ssslllllllllllooooooooooooowwwwwwwwww. > > faster harddrives help compiling speed too. > > I just can't understand why stl is the main culprit for that much of a > slow-down. > > Speaking of slow-down, my brain slowed down so I think I will go to bed > now. > > - Ray > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 > |