[Issue 14758] TypeInfo causes excessive binary bloat

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 21 03:19:00 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14758

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #10 from Martin Nowak <code at dawg.eu> ---
> There have been proposals to add a -nortti flag to the compiler to remove TypeInfo completely, but that would force a compromise on slicing, postblit and other features.  Such compromises are most undesirable.

There are very few places where dynamic type info is actually necessary, it's
just that they were used by the old C style compiler runtime interface.
The remaining places are mostly GC, rt.lifetime, and currently the AA.
I don't think you can properly use D on a small SoC with TypeInfo or
ModuleInfo.
Please try the -betterC switch, it's supposed to avoid all runtime
dependencies.

--


More information about the Digitalmars-d-bugs mailing list