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 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!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 25 Dec 2014 16:48:25 -0600 Newsgroups: comp.lang.ada Date: Thu, 25 Dec 2014 17:48:22 -0500 From: Peter Chapin X-X-Sender: pcc09070@WIL414CHAPIN.vtc.vsc.edu Subject: Re: Size of linked program increasing with new version of GNAT. In-Reply-To: Message-ID: References: <7f38a07d-3f73-432c-8647-e3a7dcf43637@googlegroups.com> User-Agent: Alpine 2.11 (CYG 23 2013-08-11) Organization: Vermont Technical College MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-JkJrwlIW+IA+2x6EFpOZe7Ay019JUNDlZjLGzcvhQTr8dPGGAYKKBU6+/zsz1TJ0/HYU2pKCpR89/xP!ADNzE6IBfospQMuXN5NiBADwaOmg58kBlvmDauxp3lD+BxVsIG6lsDaexQwgeBP1fikEEilrrxer!caqLxn/ta61A9EiULw== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2099 Xref: news.eternal-september.org comp.lang.ada:24233 Date: 2014-12-25T17:48:22-05:00 List-Id: On Thu, 25 Dec 2014, Shark8 wrote: >> >>> -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. >> > > Did you use the "strip unused sections" [or something similar] option > for the linker? The OP might also want to look into gnatelim to see if using it could help eliminate unusued code. One could argue that the size of the "Hello, World" program isn't all that important. The overhead might be large but if most of that overheard is actually used in a realistically sized program, well, it's not really overhead in that case. Peter