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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1bce3f54cf1cba1b X-Google-Attributes: gid103376,public From: boschg@cs.utwente.nl (Geert Bosch) Subject: Re: GNAT Executables: How low can you go? Date: 1996/04/16 Message-ID: <4l0o3s$hgt@utrhcs.cs.utwente.nl>#1/1 X-Deja-AN: 147841149 distribution: world references: <4kmq7a$egm@fozzie.sun3.iaf.nl> organization: University of Twente, Dept. of Computer Science reply-to: geert@sun3.iaf.nl newsgroups: comp.lang.ada Date: 1996-04-16T00:00:00+00:00 List-Id: Robert Dewar (dewar@cs.nyu.edu) wrote: : I of course like to see positive posts about GNAT like this, but surely : that figure of 11,616 is wrong, I could believe 116K, but 12K must : be wrong, especially if you are using statically linked libraries. : Text_IO alone is larger than this. But I didn't say I linked the runtime libraries static ;-) All the application code, the regexp library and the necessary headers/stub fits in 12K. The smallest I could get with statical linking was 52 kB. But since most C apps use emx.dll and emxlibc.dll, why couldn't Ada apps not use a dll? I put *all* of the GNARL code (700 kB of .o files) in one 250 kB dll and link all apps against that. This is a really good way of avoiding those bloated executables we see otherwise. : Can you double check your numbers? Yes, I did so before posting my previous article. You should also note that the dynamically linked GNAT Runtime Libraries (GNATLIB.DLL) and my own apps have been compressed using LXLite. The compressed GNAT1.EXE (about half the size of the original GNAT1.EXE) seems to load even faster when not using EMXLoad. When EMXLoad is used the times don't differ. Of course I also used LINK386 instead of ld, since it seams to produce much smaller executables. Still, even considered all tricks, 12 kB for the application code including all regexp code and the necessary .EXE headers is very little, I think. Regards, Geert PS. My newsfeed seems to be broken, so please send a copy of any follow-ups to geert@sun3.iaf.nl.