Consider http://goo.gl/qv5NKz
* main() should inline to a call to puts and throwing an exception
* There should be no unittest-related and no assert-related generated code in -release mode
I believe this would be the change in https://github.com/D-Programming-Language/dmd/pull/3552
As I understand it, the symbols are put on comdat, so would be emitted in compiles, but cleaned out in the link phase (or maybe post-strip).
Comment #4 by ibuclaw — 2015-01-27T18:48:03Z
The best thing DMD can do is to not rely on these artificial function helpers, and just inline whatever code it is they're emitting.
Comment #5 by k.hara.pg — 2015-01-28T14:26:48Z
(In reply to Iain Buclaw from comment #3)
> I believe this would be the change in
> https://github.com/D-Programming-Language/dmd/pull/3552
I agree, and at least issue 13873 and issue 14044 are blocking the optimized objfile output.
Comment #6 by robert.schadek — 2024-12-13T18:39:25Z