__FILE__ and __LINE__ again...
Dicebot
public at dicebot.lv
Tue Sep 10 09:50:03 PDT 2013
On Tuesday, 10 September 2013 at 16:45:33 UTC, H. S. Teoh wrote:
> but you can get rid of this with link-time
> optimization (on Posix, you'd add -L-gc-sections to your dmd
> command-line: this will cause ld to delete code sections that
> are never
> referenced, which includes the log() instantiations if indeed
> they have
> been inlined).
Using `--gc-sections` requires each function and data item to be
placed into its own section (-fdata-sections and
-ffunction-sections in gcc). AFAIK dmd does not do it.
More information about the Digitalmars-d-learn
mailing list