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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c74781e34db23310 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-15 11:10:49 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!transit.news.xs4all.nl!195.241.76.212.MISMATCH!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Sender: lbrenta@deuteronomy Newsgroups: comp.lang.ada Subject: Re: Application Size in Ada References: From: Ludovic Brenta Date: 15 Apr 2004 20:13:05 +0200 Message-ID: <87y8ox2jpq.fsf@insalien.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 15 Apr 2004 20:10:48 CEST NNTP-Posting-Host: 83.134.238.160 X-Trace: 1082052648 dreader2.news.tiscali.nl 41750 83.134.238.160:33058 X-Complaints-To: abuse@tiscali.nl Xref: archiver1.google.com comp.lang.ada:7154 Date: 2004-04-15T20:10:48+02:00 List-Id: Simon Lewis writes: > Dear All, > > Why do the binaries that I built seem to be huge? I know this is a > bit of an open ended question... (no "how long is a piece of string" > related answers please) It depends. The compiler normally inserts run-time checks in the code; this can be turned on or off. The Ada run-time may be linked statically into your application, or not. This would be the biggest contributor to the size of your executables. The executable file may contain debugging information. The executable file may contain instrumentation code to perform coverage analysis with unit tests. If you can be more specific about your compiler and target platform, perhaps we can answer your question more precisely. > I'm using tasks in my application. Does this add extra code into > the binary to ensure time slicing?. I was just wondering where all > the bloat is coming from. Tasking may add some overhead, if you link the Ada run-time library statically into your executable. > On a separate issue... I have found an IDE called GPS (GNAT > Programming System) Is this considered the 'thing to use' or are you > all writing your ADA in emacs (or equivalent)? (No flames Please ;) ) > > Thanks for your responses Emacs. But I packaged GPS for Debian, so I won't discourage you from using it. GPS is pretty good, it even has some features not in emacs (gasp!) BTW, at 11 Mb or so, the executable file for GPS is the largest I know of in Debian, even when stripped and linked dynamically with the Ada run-time and GtkAda. On GNU/Linux, object code produced by GNAT does tend to be larger than in some other languages. Do you consider this a problem? P.S. In the subject line, I have corrected the spelling of Ada. It is not an acronym, it is a lady's name. -- Ludovic Brenta.