CTFE attribute
Marco Leise
Marco.Leise at gmx.de
Sun Jan 29 12:17:30 PST 2012
Am 28.01.2012, 16:42 Uhr, schrieb Trass3r <un at known.com>:
>> When I build my code, I notice that the CTFE functions, which are never
>> referenced in any runtime code, are still present in the object file.
>
> For now you can get rid of it with -L--gc-sections (or LTO).
> gdc also needs -ffunction-sections -fdata-sections.
I've recently fucked up my first executable with that. -L--gc-sections had
the effect as if 'throw' was a no-op. In other words runtime exceptions
are silently ignored. If you use it double-check that exceptions are still
thrown!
More information about the Digitalmars-d
mailing list