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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 12:01:12 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Application Size in ADA Date: Thu, 15 Apr 2004 20:42:07 +0200 Organization: AdaCL Message-ID: <1198888.cFZzYPrKut@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1082055508 04 23119 EZAtGVULaTIjUlf 040415 18:58:28 X-Complaints-To: usenet-abuse@t-online.de X-ID: GzYENBZUQemXC32b67BrzwHKXajP-HcSukhgAE5e4rEsTB6pa7Utkz User-Agent: KNode/0.7.7 Xref: archiver1.google.com comp.lang.ada:7158 Date: 2004-04-15T20:42:07+02:00 List-Id: Simon Lewis wrote: > 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) > > 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. It does indeed. The compiler invisible draws libraries in. i.E. raise Some_Exeption; is mapped to Ada.Exceptions.Raise_Exception ( E => Some_Exeption, Message => ""); As you can see the library give you the benefit of message. Why there is no raise Some_Exeption with "Some Message"; I don't know. But that is beside the point. As for Tasking: Look at Annex D to see the libs used for Tasking. Reduction? With GNAT: yes - use "-shared" and the base libs come out of a DLL. > 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 ;) ) For beginners: Yes - you would have found a checkbox called "shared library" ;-). With Regards Martin. -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com