Compiling without optimization
- Posted by SDPringle 1 month ago
- 316 views
I have added a new flag for configure, because if you disable optimization the programs are built faster, much faster.
make all: -O0 real 3m48.038s user 3m30.337s sys 0m15.009s -O3 real 10m14.074s user 9m49.612s sys 0m21.770s make test: -O0 real 15m33.645s user 12m23.936s sys 2m0.118s -O3 real 10m14.074s user 9m49.612s sys 0m21.770s
The extra time the compiler takes for optimization makes a runtime with make all take 10 minutes of real time. If optimization is disabled it takes only 4 minutes.
The option is --build-quickly and it is not the default. The default continues to be optimization. We should avoid disasters by not making new options that people should set for production.