intel - File smaller => Compilation time longer? -
i've got old c files, written in 1999 older. there useless parts of code because of new programming techniques. i've got problem.
the original file => 640 lines --> 0.448 seconds the new file => 581 lines --> 0.493 secondsi have utilize intel c++ compiler version 10 o3 optimisations. compiler configuration not customizable except options , flags in compilation line.
this difference of time between original , new file insignificant, when extrapolated 5000 files, adds up.
i don't think fault of compiler.
edit clarificationi have optimize compilation time of lots of c files. these files contain lots of old code useless (#if 0
, preprocessor code...). in order remove things, created python script examines of files , removes undesirable pieces of code.
the patch works well. removes code want. compilation time increases. don't understand why.
edit #2my patch removes part of code removed preprocessor #if 0
, , merging loops. 15 loops 1 line , same max worst 1 loop 15 lines inside. made lots of tests on big file (70000 lines) , save 60% of original compilation time. don't add together complexity or other operations. it's code purge.
intel compilation-time
No comments:
Post a Comment