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: g2news2.google.com!news3.google.com!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 11 Apr 2011 13:19:43 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How do I disable elaboration code on this 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> In-Reply-To: <6bca8b26-152f-482c-95c0-1abf88b6b29b@a26g2000vbo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4da2e3cf$0$6761$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 11 Apr 2011 13:19:43 CEST NNTP-Posting-Host: b489ab5f.newsspool3.arcor-online.net X-Trace: DXC=UYA0V@=\N?kj5k5aEF7ISmMcF=Q^Z^V3h4Fo<]lROoRa8kFjLh>_cHTX3jmMeL@6RaMidd X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:19726 Date: 2011-04-11T13:19:43+02:00 List-Id: On 11.04.11 10:54, Lucretia wrote: > The problem has nothing to do with the linker, I'm using binutils and > gnat that I'e built myself. The problem is that GNAT is generating > elaboration code where it is not allowed, i.e. code that 1) > initialises the array to 0 and 2) code that the copies function > addresses into the array. When, just for the fun of it, I added pragma Preelaborate, I learned that Dummy'Address is non-static. Assuming this could be helped by specifying the final location of procedure Dummy in ROM, how would you do this in C (as you said that's possible, I'm curious).