Liste des Groupes | Revenir à cl c |
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>scott@slp53.sl.home (Scott Lurndal) writes:>
>[...] I have one>
source file that takes almost 7 minutes to compile
when using -O3 on a very-high-end xeon box. Mostly
buried in the overall compile time when using parallel
make.
>
The code could be restructured to compile in a few seconds;
but that would require substantial changes to the rest
of the codebase. Compiling with -O0 for development
testing reduces the compile time to a few seconds.
How long does it take compiling with -O1?
Using -O1 saves 14 seconds on the long-pole.
>
>
$ time mr -s -j96
COMPILE g.cpp
BUILD lib/lib_g.so
BUILDSO libsim.so.1.0
BUILD TARGET sim
>
real 14m0.76s
user 13m52.28s
sys 0m20.13s
>
$ time md -s -j96
COMPILE g.cpp
BUILD lib_g.so
BUILDSO libsim.so.1.0
BUILD TARGET sim
>
real 13m46.49s
user 13m42.17s
sys 0m16.66s
>
To be clear, we know that this is ridiculous, the generated
header file totals 1.25 million lines, including a single
function with over 200,000 SLOC. Feature creep, antique
algorithms, screwed up third-party ip-xact collateral and
tight development schedules.
Les messages affichés proviennent d'usenet.