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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,69431b06fe9a3239 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How do I disable elaboration code on this Date: Fri, 15 Apr 2011 09:38:08 +0100 Organization: A noiseless patient Spider Message-ID: References: <58bc4fb4-5f6a-48d6-9c98-0dde7ac619df@p16g2000vbo.googlegroups.com> <4da2176e$0$6977$9b4e6d93@newsspool4.arcor-online.net> <93b20b91-03ed-48d2-87b6-a109127a5a4f@l18g2000yql.googlegroups.com> <6bca8b26-152f-482c-95c0-1abf88b6b29b@a26g2000vbo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="31810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KYR6rzM5w5W+W9sX1Wc8DZHDuKgn8VHg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:SzkCGEX5yN8ObWihjRnQjfPCnRU= sha1:7WUYmiz5CayzTVF/rgrU14EIGlI= Xref: g2news1.google.com comp.lang.ada:18797 Date: 2011-04-15T09:38:08+01:00 List-Id: Simon Wright writes: > Simon Wright writes: > >> The part about the LSB being set to 1 may cause difficulty! I suppose >> one could say "Foo'Address + 1" (which means the vector would have to be >> an array of System.Address, not so good but I think unavoidable??) > > And then we're back to the 'no elaboration code' problem. > > Does the LSB really have to be set to 1? The Cortex-M3 only implements > Thumb instructions, doesn't it? It turns out that (at GCC 4.6.0, binutils 2.21) GCC -mthumb marks functions (subprograms) with the assembler directive .thumb_func; GAS then sets the least significant bit in references to the subprogram. So, no human interaction required.