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!proxad.net!feeder1-2.proxad.net!news.mixmin.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: Sun, 10 Apr 2011 13:12:59 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <58bc4fb4-5f6a-48d6-9c98-0dde7ac619df@p16g2000vbo.googlegroups.com> NNTP-Posting-Host: dfbdbcfe2436cfc14090a86f19f961a1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: c6194d0de6bea18d7af3bbea83083cbf 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: X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=c6194d0de6bea18d7af3bbea83083cbf 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:19716 Date: 2011-04-10T13:12:59-07:00 List-Id: On 04/10/2011 10:20 AM, Lucretia wrote: > > Nope, this didn't work. Checked the RM. Seems that if I use pragma > Import (Ada, Vector) then the compiler assumes that this is an > external (possibly in ASM) that is already initialised and therefore > cannot be initialized to my ISR subprograms. I gather that you are trying to set up the vector to be written to flash, not use a vector already in flash. In that case I don't see how you could expect the code that writes the vector to flash to not have elaboration code for the new vector you are creating through declarations in a declarative region. My suggestion was for code that uses the vector in flash. You could import the vector as a variable to suppress the initialization to all null, then assign to it in the executable part of your program, but that's simply moving the initialization from elaboration code to explicit code. -- Jeff Carter "It's all right, Taggart. Just a man and a horse being hung out there." Blazing Saddles 34