Bug 14053 – "Hello world" generates bloat in the object file

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-26T18:45:08Z
Last change time
2024-12-13T18:39:25Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Depends on
13873, 14044
Moved to GitHub: dmd#18936 →

Comments

Comment #0 by andrei — 2015-01-26T18:45:08Z
Comment #1 by andrei — 2015-01-26T18:46:54Z
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
Comment #2 by andrei — 2015-01-26T18:51:46Z
With -O -release -inline: http://goo.gl/EYOHV1
Comment #3 by ibuclaw — 2015-01-27T18:44:40Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18936 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB