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,81cf52699486abe7 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Code size of Ada ? was Re: Ada95 Strengths/Weaknesses. Date: 1999/09/29 Message-ID: <1999Sep29.075617.1@eisner>#1/1 X-Deja-AN: 530683814 X-Nntp-Posting-Host: eisner.decus.org 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> X-Trace: news.decus.org 938606181 28323 KILGALLEN [216.44.122.34] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1999-09-29T00:00:00+00:00 List-Id: In article <7srnb9$2u3$1@nnrp1.deja.com>, Robert Dewar writes: > The size of large programs is a concern, but measuring the > size of hello world programs has nothing at all to do with > the size of real programs, since what you are really > concentrating on here is the default size of the minimal > run-time library. > > This can be important in e.g. safety critical embedded > applications, where the appropriate approach is to use the > No_Run_Time facility of GNAT (GNORT) to eliminate the run > time entirely. > > Note that the original note here worried about performance, > which is of course a completely different issue, and it was > really that issue which I was addressing, I simply can't > get to excited about saving hundredths of cents worth of > disk for the image of a hello world program :-) Although many people have written small programs for test purposes, most of them run those programs in environments tuned for running much larger programs. In fact, if you run a trivial program on a capable operating system it will incur all sorts of overhead setting up for the possibility of multiple DLLs, etc. that are never needed for "Hello World". So a bare machine will indeed provide the most efficient environment for "Hello World", so long as your calculations value your own time as worth zero. For a truly efficient solution, use a pencil to write "Hello World" on a piece of paper and be done with it. Larry Kilgallen