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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.55.99 with SMTP id r3mr16628398obp.8.1419538522718; Thu, 25 Dec 2014 12:15:22 -0800 (PST) X-Received: by 10.140.25.242 with SMTP id 105mr496qgt.19.1419538522606; Thu, 25 Dec 2014 12:15:22 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h15no30354269igd.0!news-out.google.com!r1ni76qat.1!nntp.google.com!dc16no1935661qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Dec 2014 12:15:22 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=90.229.166.210; posting-account=yz2tywoAAABGMYjDvPrnwB-gG84yE0F3 NNTP-Posting-Host: 90.229.166.210 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7f38a07d-3f73-432c-8647-e3a7dcf43637@googlegroups.com> Subject: Re: Size of linked program increasing with new version of GNAT. From: tony7@tele2.se Injection-Date: Thu, 25 Dec 2014 20:15:22 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:24231 Date: 2014-12-25T12:15:22-08:00 List-Id: > I think you want -O1 >=20 > -O1 for small size > -O2 for speed I tried both combinations with both GNAT versions. The -O1/O2 switches make= s no difference on the size. The object code of the main program is less th= an one KB, so most of the linked program must come from some precompiled li= brary, which is not affected by the compiler switches. > -Os for small size. Tried this one also now. The 3.15p GNAT don't have it. The 2014 GNAT still = produces a 195 KB executable.