Re: Yet another build styles issue
Re: Yet another build styles issue
- Subject: Re: Yet another build styles issue
- From: Dario Accornero <email@hidden>
- Date: Wed, 12 Nov 2003 16:15:06 +0100
On 12 Nov 2003, at 15:44, Alastair Houghton wrote:
This is unbelievable -- in this situation, gcc 3.3 is actually being
fed the "-g -Os" combination... I mean, seriously, how many people do
use these two settings together? Stepping with gdb through code
compiled with -O3 or -Os (and IMNSHO even -O1) is next to useless.
No it isn't. It's very useful. One particular benefit is that by
testing with optimised code, you will expose bugs in your code that
will only show-up when the optimiser is enabled. Also, when building
with the optimiser enabled, you get a few extra warnings that don't
show up when the optimiser is turned-off (basically because GCC
doesn't do the necessary analysis unless it's optimising)... some of
these warnings are quite useful.
If you can stand debugging in gdb with optimisations on, more power to
you -- sometimes I find it uncomfortable even at -O1. As for the
warnings, you will get them anyways in your Deployment build.
I do agree with the general point that it's easier to debug things
with optimisation turned off completely, but debugging with it enabled
certainly isn't "next to useless".
Perhaps I was too severe, but I feel it is a not very useful
combination for a Development build.
YMMV,
Dario
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.