dmd omit framepointer

Benjamin Thaut code at benjamin-thaut.de
Fri Sep 30 10:48:18 PDT 2011


Am 30.09.2011 19:22, schrieb Vladimir Panteleev:
> On Fri, 30 Sep 2011 19:51:46 +0300, Benjamin Thaut
> <code at benjamin-thaut.de> wrote:
>
>> Does dmd omit framepointers in release buidls? (on windows)
>
> Yes.
>
>> If yes is there a way to turn it off?
>
> I think the only option is not to use -release.
>
> (For the record, I also don't think that putting stack frame generation
> and disabling of asserts/etc. behind one option was a good idea.)
>
That is really unfortunate. I would like to profile my application 
obviously in release build. Because of the omitted framepointer the 
profiler can often not walk the callstack correctly and this results in 
wrong profiling output. Not building with -release would not really 
result in representable results when profiling.

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list