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: <37F25CC4.96AD83E0@Maths.UniNe.CH>#1/1 X-Deja-AN: 530811282 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> <37F25273.298DCBD6@Maths.UniNe.CH> <1103_938628432@DZOG-CHEN> 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: Ed Falis wrote: > I don't think this is a matter of using a "C" linker, but maybe one of > using ld? Rather... but ld, C, Unix... it's a little the same area (hum...) > On windows, both the Microsoft linker and the Phar Lap linker we > use for embedded applications are smart enough to eliminate > unreferenced code sections, for Ada or for other languages. Interesting! Do you know how it works ? By simulating execution and ``colouring'' used code ? Does it trim unused global variables or constants too ? Can it replace ld ? It would be interesting to know if such a low-level trimming is safe. E.g. can it detect tricky code address calculations (ASM/C-like) that would make an apparently unused code section used indeed ? -- Gautier -------- http://members.xoom.com/gdemont/