Thread overview
[Issue 14053] "Hello world" generates bloat in the object file
Jan 27, 2015
zeljkog
Jan 27, 2015
Iain Buclaw
Jan 27, 2015
Iain Buclaw
Jan 28, 2015
Kenji Hara
Apr 05, 2016
Jack Stouffer
Dec 17, 2022
Iain Buclaw
January 26, 2015
https://issues.dlang.org/show_bug.cgi?id=14053

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |Phobos
                 OS|Mac OS X                    |All

--- Comment #1 from Andrei Alexandrescu <andrei@erdani.com> ---
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

--
January 26, 2015
https://issues.dlang.org/show_bug.cgi?id=14053

--- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> ---
With -O -release -inline: http://goo.gl/EYOHV1

--
January 27, 2015
https://issues.dlang.org/show_bug.cgi?id=14053

zeljkog <zeljko.grk@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zeljko.grk@gmail.com

--
January 27, 2015
https://issues.dlang.org/show_bug.cgi?id=14053

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
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).

--
January 27, 2015
https://issues.dlang.org/show_bug.cgi?id=14053

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> ---
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.

--
January 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14053

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |13873, 14044

--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> ---
(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.

--
January 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14053
Issue 14053 depends on issue 14044, which changed state.

Issue 14044 Summary: dmd generates spurious functions in object file created from empty module https://issues.dlang.org/show_bug.cgi?id=14044

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
January 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14053
Issue 14053 depends on issue 13873, which changed state.

Issue 13873 Summary: 2.066.1 Compiling with -debug -inline generates huge files https://issues.dlang.org/show_bug.cgi?id=13873

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
April 05, 2016
https://issues.dlang.org/show_bug.cgi?id=14053

Jack Stouffer <jack@jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jack@jackstouffer.com
          Component|phobos                      |dmd
           Hardware|x86                         |All

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14053

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--