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... ;-(
The primary purpose of a debug build is to turn on assertions and a few other debug-mode facilities we have present on the system. We actually want all other aspects of the build to be as similar as possible to a production build. One reason is scientific: the debug components are there to help us find or track down bugs in the product which our customers ultimately are going to be running. Changing compiler options doesn't contribute significantly in that regard, yet adds a whole new set of variables where we would like to have a control. 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. Dave _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code