C compile time

Paul Koning pkoning@equallogic.com
Mon Jun 30 13:50:00 GMT 2003


>>>>> "Robert" == Robert Dewar <dewar@gnat.com> writes:

 >> But for the vast majority of working programmers, I simply don't
 >> see why optimized compile times are such an issue.

 Robert> In our world, we have many customers building very large
 Robert> systems that require optimization to be turned on once they
 Robert> get past the initial integration stage, so the great majority
 Robert> of development work is done in optimized mode.  The model
 Robert> where you do everything unoptimized and turn on optimization
 Robert> for the final build and you are done is not reasonable for
 Robert> large critical systems which must be extensively tested in
 Robert> essentially final form.

 Robert> So for us, -O2 compilation time is indeed critical.

Absolutely.  The notion that you do debugging with -O0 and only final
build with -O2 is obsolete -- and actually never was a good one.  

If you want reliable software, you have to debug what you ship -- not
something totally different.

	  paul



More information about the Gcc mailing list