Switch to list all druntime calls?

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Tue May 20 09:55:26 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?

No. There are quite a few runtime functions which don't in fact 
allocate. -vgc is a tool to help in avoiding GC allocations, not 
all druntime dependencies.

I'd suspect that the answer to the question about the "more 
useful" behavior depends entirely on your use case.

David


More information about the Digitalmars-d mailing list