Am 28.01.2012, 16:42 Uhr, schrieb Trass3r <[email protected]>:

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!

Reply via email to