Regarding stripping and -g

Richard Webb webby at beardmouse.org.uk
Wed Jun 19 03:09:46 PDT 2013


On Wednesday, 19 June 2013 at 06:14:34 UTC, David Nadlinger wrote:
> On 18 Jun 2013, at 1:09, bearophile wrote:
>> What's the difference between the stripped (3) and the 
>> stripped program compiled with -g (4)?
>
> If you build with -g, the debug version of druntime/Phobos is 
> linked instead.
>


I was going to ask why a test app build with 'ldmd2 -inline 
-release -O -g' appears to be quite a bit slower than one built 
with 'ldmd2 -inline -release -O', and I suppose that answers that 
question as well?


(I thought i'd run it through the Very Sleepy Profiler to compare 
it with the version build with DMD. If i compile without -g then 
it works but I get no function names, and if I compile it with -g 
the profiler crashes (Doesn't seem to be an LDC issue though - It 
seems to have issues with Mingw 3.8 in general).


More information about the digitalmars-d-ldc mailing list