comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: How do I disable elaboration code on this
Date: Sun, 10 Apr 2011 13:12:59 -0700
Date: 2011-04-10T13:12:59-07:00	[thread overview]
Message-ID: <int4ua$hp0$1@tornado.tornevall.net> (raw)
In-Reply-To: <a439f669-3936-4c1c-8e76-2bb3bb63fce7@y31g2000vbp.googlegroups.com>

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



  reply	other threads:[~2011-04-10 20:12 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-09 13:58 How do I disable elaboration code on this Lucretia
2011-04-09 16:57 ` Jeffrey Carter
2011-04-09 17:01   ` Simon Wright
2011-04-09 17:44     ` Ludovic Brenta
2011-04-09 19:19       ` Simon Wright
2011-04-09 19:32         ` Jeffrey Carter
2011-04-10  9:06           ` Lucretia
2011-04-10  9:31             ` Simon Wright
2011-04-09 19:35         ` Ludovic Brenta
2011-04-09 22:05           ` Simon Wright
2011-04-10  5:39             ` Simon Wright
2011-04-10 17:20   ` Lucretia
2011-04-10 20:12     ` Jeffrey Carter [this message]
2011-04-10 20:47     ` Georg Bauhaus
2011-04-10 21:19       ` Lucretia
2011-04-11  5:08         ` Lucretia
2011-04-11  6:28           ` Simon Wright
2011-04-11  8:54             ` Lucretia
2011-04-11 10:10               ` Simon Wright
2011-04-11 11:59                 ` Simon Clubley
2011-04-11 18:30                   ` Simon Wright
2011-04-11 19:12                     ` Simon Wright
2011-04-11 19:50                       ` Simon Wright
2011-04-11 21:40                       ` Lucretia
2011-04-11 23:12                         ` Lucretia
2011-04-11 23:16                           ` Lucretia
2011-04-11 23:31                           ` Lucretia
2011-04-12  5:22                             ` Simon Wright
2011-04-12 17:07                             ` Simon Clubley
2011-04-13 16:53                       ` Simon Wright
2011-04-15  8:38                       ` Simon Wright
2011-04-11 23:08                   ` Lucretia
2011-04-12 11:50                     ` Simon Clubley
2011-04-12 16:48                       ` Lucretia
2011-04-11 11:19               ` Georg Bauhaus
2011-04-11 13:50                 ` Simon Wright
2011-04-14 19:19               ` Florian Weimer
2011-04-10 16:34 ` Rolf
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox