Executable size
Joakim via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Mon May 2 03:38:16 PDT 2016
On Monday, 2 May 2016 at 09:52:38 UTC, Russel Winder wrote:
> On Mon, 2016-05-02 at 09:45 +0100, David Nadlinger via
> digitalmars-d- ldc wrote:
>> Hi Russel,
>>
>> On 1 May 2016, at 13:43, Russel Winder via digitalmars-d-ldc
>> wrote:
>> > Is it right that ldc2 built from source should be about 80MB?
>>
>> Depends on what target architectures are included in the LLVM
>> build
>> (if
>> it is linked statically) and so on, but that is a bit larger
>> than
>> I'm
>> seeing here. The executable size is quite a bit increased if
>> your
>> build
>> (or a part of it) has debugging symbols enabled.
>>
>
> I am building with things out of the box:
>
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/Built ..
>
> so it sounds as though I need to amend this to get a reasonable
> size executable.
>
> Even stripped I have 31MB of ldc2, so 50MB of symbols.
Ldc master 2.070.2 with all llvm targets, more than 20 CPU
architectures, and unstripped is 40 MB on Arch linux/x64 for me.
More information about the digitalmars-d-ldc
mailing list