Bart Smaalders wrote:
> 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) ?
>
> Project teams sometimes leave alternate targets in place for these
> types of builds. This allows them to debug quickly.
I wish it would be that easy in our case where the various pieces are
shattered over more a dozend directories in usr/src/lib/ and
usr/src/cmd/ ... ;-/
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [EMAIL PROTECTED]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code