Switch to list all druntime calls?

Meta via Digitalmars-d digitalmars-d at puremagic.com
Tue May 20 08:53:49 PDT 2014


On Tuesday, 20 May 2014 at 10:39:32 UTC, bearophile wrote:
> Instead (or in addition) of this dmd compiler switch:
>
> -vgc           list all hidden gc allocations
>
> Isn't it more useful a compiler switch like "-noruntime" 
> (similar to the switch of the ldc2 compiler) meant to list the 
> lines of code where are implicit calls to runtime funcitions?
>
> Bye,
> bearophile

I think I remember Adam Ruppe mentioning somewhere that you can 
use a custom object.d and omit the Druntime functions, and the 
linker will complain about them at link-time where they're used. 
That more or less does the trick, doesn't it?


More information about the Digitalmars-d mailing list