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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1787c33169d3ed58 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 19 Sep 2005 13:25:22 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Big executable program size References: <00BXe.5$QR.3@dfw-service2.ext.ray.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Mon, 19 Sep 2005 13:25:22 -0500 NNTP-Posting-Host: 24.6.102.223 X-Trace: sv3-D2HSERTBA4ixfCGid17J7ucRhYGAWB5tV2S+tSTjIfkzyZXZ1+HGFBmmZv8/mGVyuctUcvBy/QYV4gS!4jijVPFdV2W33LD0M86dspKFl9TFMvXxoe7lBOZ2Es9RO+ZXem7px8+wL07JR8T+SmdsYoDqojzN X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net 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.32 Xref: g2news1.google.com comp.lang.ada:4918 Date: 2005-09-19T13:25:22-05:00 List-Id: >> I downloaded gnat-gpl-2005-pentium-mingw32msv-bin.exe for win98 >> and compiled hello.adb >> This hello.exe size is 1520kb. why? >The simple answer is that your program has statically linked in a lot of >... >A longer answer points out that much of the excess is relatively fixed, >and is not a significant proportion of a "real" program, where it's also >more likely to be needed. Also, different Ada compilers generate substantially different exe sizes, presumably depending on how their designers view the cost of disk/RAM/bandwidth vs the cost of trimming out the fat.