Mail Archives: djgpp/1999/08/18/13:30:41
On Mon, 16 Aug 1999, Johan Venter wrote:
> I don't want to have to take so long to compile a project while it's in
> test stages.
This is a mistake, IMHO. If you test the program compiled with a
different set of optimization switches than the binary you will ship/use
in production, your entire testing might be invalid, because you tested a
different program. Optimizations can rearrange the code a great deal.
Therefore, I suggest to use the same optimization level in testing as in
production. Luckily, GDB and RHIDE can debug optimized programs, so you
don't need to compromize.
- Raw text -