From: Simon Wright <simon@pushface.org>
Subject: Re: How to use Zero Footprint runtime with GNAT GPL 2017
Date: Mon, 17 Jul 2017 08:27:37 +0100
Date: 2017-07-17T08:27:37+01:00 [thread overview]
Message-ID: <lylgnnmsk6.fsf@pushface.org> (raw)
In-Reply-To: 4ede9dd4-9b14-432e-acf0-43de9e0e77b9@googlegroups.com
Mark Lorenzen <mark.lorenzen@gmail.com> writes:
> On Friday, July 14, 2017 at 11:35:09 PM UTC+2, ake.ragna...@gmail.com wrote:
>> On windows 10 the hello world executable goes from 952kb to 131kb
>> with the ZFP runtime, and on Linux Ubuntu 16.04 the executable goes
>> from 588kb to 11kb. Comparing with hello world application for C++,
>> the executable is 109kb on Windows 10 and 7,5kb in Linux Ubuntu.
>
> If you are concerned about the size of the executable, you should use
> the -ffunction-sections and -fdata-sections compiler switches and let
> the linker garbage collect unused symbols away (linker switch
> --gc-sections). See
> http://docs.adacore.com/gnat_ugn-docs/html/gnat_ugn/gnat_ugn.html
> section 6.3.3.
This works if you are using GNU ld; but not for native Darwin.
next prev parent reply other threads:[~2017-07-17 7:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 8:34 How to use Zero Footprint runtime with GNAT GPL 2017 joakimds
2017-07-14 8:42 ` Egil H H
2017-07-14 8:58 ` joakimds
2017-07-14 15:41 ` Simon Wright
2017-07-14 21:35 ` ake.ragnar.dahlgren
2017-07-17 7:13 ` Mark Lorenzen
2017-07-17 7:27 ` Simon Wright [this message]
2017-07-17 20:52 ` Luke A. Guest
2017-07-26 21:29 ` joakimds
2017-07-26 21:31 ` joakimds
2017-07-26 21:28 ` joakimds
2017-07-14 9:56 ` Mark Lorenzen
2017-07-15 13:16 ` Mr. Man-wai Chang
2017-07-15 16:29 ` Lucretia
2017-07-16 13:39 ` Jacob Sparre Andersen
2017-07-16 15:00 ` Lucretia
2017-07-16 14:17 ` Mr. Man-wai Chang
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox