Thread overview
Re: Executable size
May 02, 2016
David Nadlinger
May 02, 2016
Russel Winder
May 02, 2016
Joakim
May 02, 2016
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.

Best,
David
May 02, 2016
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.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

May 02, 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.