Roland Mainz wrote:
David Powell wrote:
On Thu, Dec 21, 2006 at 11:38:49PM +0100, Roland Mainz wrote:
Is there any reason that the Sun Studio compiler still gets called with
-xO[1-5]/-O (=optimizer enabled) when "bldenv" was called with the debug
switch ("-d") ? Sometimes this makes debugging (or core dump analysis)
harder then neccesary... ;-(
[snip]
The other reason is practical: though running debug bits will help us
catch more bugs sooner, fewer people will do it if they have to run
unoptimized binaries. There's already a performance penalty for
running debug bits, and adding another (and probably much larger one)
isn't going to win friends.
Ok... but sometimes it may be "nice" to have a non-optimized binary...
... would it be possible/usefull to add something like a "-D" switch to
"bldenv" which turns debugging "on" and the optimizer "off" (or uses
-"xO0", assuming dbx doesn't switch to it's "restricted" mode in this
case) ?
----
Bye,
Roland
Project teams sometimes leave alternate targets in place for these
types of builds. This allows them to debug quickly.
- Bart
--
Bart Smaalders Solaris Kernel Performance
[EMAIL PROTECTED] http://blogs.sun.com/barts
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code