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!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.80.MISMATCH!news.astraweb.com!border3.a.newsrouter.astraweb.com!news.netcologne.de!newsfeed-hp3.netcologne.de!newsfeed.freenet.ag!news.albasani.net!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: How do I disable elaboration code on this Date: Sat, 09 Apr 2011 09:57:27 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <58bc4fb4-5f6a-48d6-9c98-0dde7ac619df@p16g2000vbo.googlegroups.com> NNTP-Posting-Host: 55b4c95e6a1ec2203f42bea89e8e3c77 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 886d98e5615030d5d1e537bcc4cf80cd X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <58bc4fb4-5f6a-48d6-9c98-0dde7ac619df@p16g2000vbo.googlegroups.com> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=886d98e5615030d5d1e537bcc4cf80cd X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:19700 Date: 2011-04-09T09:57:27-07:00 List-Id: On 04/09/2011 06:58 AM, Lucretia wrote: > The following code will not compile no matter what I do. Basically, I > want to write the startup code for Cortex-M3 in Ada with no assembly. > So, the ISR code needs to be elaboration free as it's the first bit of > code that would run on reset. > Vector : constant Vectors := > (Dummy'Access, > Dummy'Access, > Dummy'Access, > Dummy'Access); > pragma Convention (C, Vector); > for Vector'Address use Addr; I think what you need here is Vector : constant Vectors; pragma Import (Ada, Vector); for Vector'Address use Addr; since you don't want Vector to be initialized. Vector will not be initialized because you have pragma Import for it. Note that you don't need procedure Dummy. -- Jeff Carter "I'm particularly glad that these lovely children were here today to hear that speech. Not only was it authentic frontier gibberish, it expressed a courage little seen in this day and age." Blazing Saddles 88