From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.108.4 with SMTP id h4mr18466302pgc.1.1500275637790; Mon, 17 Jul 2017 00:13:57 -0700 (PDT) X-Received: by 10.36.104.205 with SMTP id v196mr171451itb.3.1500275637745; Mon, 17 Jul 2017 00:13:57 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!188no1330907itx.0!news-out.google.com!f71ni161itc.0!nntp.google.com!v202no1331143itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 17 Jul 2017 00:13:57 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq NNTP-Posting-Host: 193.163.1.105 References: <62ae5f16-9aa0-4512-89c5-11382eca8a88@googlegroups.com> <4f0cc0ce-2609-4581-9a8c-010a380214af@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4ede9dd4-9b14-432e-acf0-43de9e0e77b9@googlegroups.com> Subject: Re: How to use Zero Footprint runtime with GNAT GPL 2017 From: Mark Lorenzen Injection-Date: Mon, 17 Jul 2017 07:13:57 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47435 Date: 2017-07-17T00:13:57-07:00 List-Id: 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 th= e 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 109= kb 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 htt= p://docs.adacore.com/gnat_ugn-docs/html/gnat_ugn/gnat_ugn.html section 6.3.= 3. The you maybe don't need the ZFP runtime. Regards, Mark L