Should Druntime and Phobos be built with -gs ?

deadalnix deadalnix at gmail.com
Thu Dec 6 12:07:10 PST 2012


On Thursday, 6 December 2012 at 03:31:42 UTC, Brad Roberts wrote:
> On 12/5/2012 10:32 AM, Vladimir Panteleev wrote:
>> On Tuesday, 4 December 2012 at 12:11:37 UTC, Jacob Carlborg 
>> wrote:
>>> Isn't it better to ship Phobos and druntime with debug 
>>> versions of the libraries as well.
>> 
>> Yes, providing something immediately usable with the -debuglib 
>> switch would be nice (I'd imagine a build without -O or
>> -inline). However, if the performance impact of -gs is 
>> negligible, there's little reason not to enable it in the 
>> release
>> version of Phobos. Those who want every 0.x% of performance 
>> can always build/write their own library.
>
> If it's the right thing to be doing, the better question is 
> 'why isn't it the default' and not an option that has to be
> turned on?

Some debugger allow you to change the value of variables when the 
program is paused or some other similar stuffs. It require more 
information than simply the stack trace.


More information about the Digitalmars-d mailing list