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,6a9844368dd0a842 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: seperate keyword and seperate compilation with Gnat? Date: 1996/07/09 Message-ID: #1/1 X-Deja-AN: 167993548 references: <4rrcal$hhh@newsbf02.news.aol.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-09T00:00:00+00:00 List-Id: Bob Duff said "I was against the inclusion of pragma Discard_Names, though -- I thought compilers ought to be able to do that optimization without the extra hint, and I didn't think this particular feature was worth the trouble. On the other hand, I was in favor of pragma Restrictions." That's misguided in my opinion. This is in fact a rather hard optimization. FIrst it is not a compiler optimization, but a linker optimization, and the trouble is that many modern linker tools, including nearly all Unix linkers, are not well setup for eliminating unused code, let alone unreferenced data. You definitely would NOT get this optimization happening on most implementations.