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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81cf52699486abe7 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: Code size of Ada ? was Re: Ada95 Strengths/Weaknesses. Date: 1999/09/30 Message-ID: <37F35A89.18FC666E@maths.unine.ch>#1/1 X-Deja-AN: 531106574 Content-Transfer-Encoding: 7bit References: <37EED7B8.245C0054@yukyonline.co.yuky> <7smp30$9aa1@news.cis.okstate.edu> <7sp8m9$a6e$1@nnrp1.deja.com> <37F0D03C.DE4807D4@icn.siemens.de> <7srnb9$2u3$1@nnrp1.deja.com> <37F22A06.176CA9F6@icn.siemens.de> <7stsfs$l05$1@nnrp1.deja.com> <37F343A5.A68B8321@icn.siemens.de> Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-30T00:00:00+00:00 List-Id: > This is absolutely wrong. OK, you don't like the "Hello world", > so let me show an other example. I've wrote a simple WEB-server > for remote control of production maschines. The code that GNAT > produces was more than 800K, the same with Modula was about > 70K (10% !), both on WinNT. Oh, sorry, I remember, you don't > like comparison with other languages. Well, I compiled the same > with ObjectAda 7.1 and the total amout of code (with static linking) > was 200K. Therefore I think, that there must be a way to produce > smaller EXE-files with GNAT, too. And _this_ was the question of > my original posting. Ok, ok. I understand. I do not pay lots of > $$$ for support, therefore I will not be told the neccessary > compileroptions . But it does not matter, I prefer the Aonix > tool anyway. But you forget to precise some crucial details: - which Modula compiler, which options (switches) ? - which options on Aonix ? - which options on GNAT ? With your 800KB on GNAT it _smells_ like you forgot, in building the whole project: - optimization: -O2 -fomit-frame-pointer - suppress run-time checks: -gnatp - disabling every inlining - stripping debug code from .exe (there is a lot, appended to the .exe file) -- Gautier -------- http://members.xoom.com/gdemont/