Object.factory() and exe file size bloat

Benjamin Thaut via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 23 06:09:45 PDT 2015


On Saturday, 22 August 2015 at 20:22:58 UTC, David Nadlinger 
wrote:
> On Saturday, 22 August 2015 at 20:14:59 UTC, Walter Bright 
> wrote:
>> I'm not sure how export would help on Linux.
>
> One of the use cases for export on Linux would be to set the 
> ELF visibility based on it. Emitting all the symbols with 
> default visibility, like we currently do, leads to size and 
> load time problems with large libraries. Big C++ projects are 
> plagued regularly by this (cf. "-fvisibility=hidden").
>
>  — David

The good news is, once I'm done with my windows DLL work the code 
can be trivialy reused to make export control the visibility of 
symbols on linux as well.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list