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/29 Message-ID: <37F25273.298DCBD6@Maths.UniNe.CH>#1/1 X-Deja-AN: 530793268 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> <1999Sep29.075617.1@eisner> <37F22BB1.F3524D60@icn.siemens.de> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-29T00:00:00+00:00 List-Id: > But - is it really necessary to include e.g. all tasking stuff in simple > applications ? I share your point of view. Now the cost of hard disk space is low, but the single KB spared has important implications in terms of speed with cached memory processor. > I for myself prefer tools that links only the really > needed parts together. At least the Janus (RR Software) linkers do unused code trimming: it selects only used parts in each module. Note that this can be done only with strongly modular languages like Ada or Borland Pascals. A C linker will put together the entire object code files with needed and unneeded parts... Since GNAT uses a _C_ linker, this may be why your .exe is so big! [or aren't you using GNAT ?] But GNAT 3.11+ provides a source-level trimming tool (gnatelim)... Don't forget to strip the debug info, too. > Fifteen years ago I already heared from Ada > vendors that the code _must_ be bigger and slower because Ada is a > powerful language. Maybe this is the reason why many people prefer "C". Nowadays you can have powerful language _and_ speed (BTW for me speed is a necessary condition of computing power)... -- Gautier -------- http://members.xoom.com/gdemont/