From: Lucretia <Lucretia9000@yahoo.co.uk>
Subject: Re: How do I disable elaboration code on this
Date: Sun, 10 Apr 2011 14:19:37 -0700 (PDT)
Date: 2011-04-10T14:19:37-07:00 [thread overview]
Message-ID: <b8f74b18-815e-436d-876e-9aa7d47c6454@l6g2000vbn.googlegroups.com> (raw)
In-Reply-To: 4da2176e$0$6977$9b4e6d93@newsspool4.arcor-online.net
On Apr 10, 9:47 pm, Georg Bauhaus <rm-host.bauh...@maps.futureapps.de>
wrote:
> pragma Restrictions (No_Elaboration_Code);
>
> with System;
>
> package ISR is
> procedure Dummy;
> pragma Convention (C, Dummy);
>
> private
> type Cb is not null access procedure;
> pragma Convention (C, Cb);
>
> type CbW is limited record
> C : Cb := Dummy'Access;
> end record;
> type Vectors is array (1 .. 4) of CbW;
> pragma Convention (C, Vectors);
>
> Addr : constant System.Address := System'To_Address
> (16#0000_0000#);
>
> Vector : Vectors;
> pragma Import (Ada, Vector);
> for Vector'Address use Addr;
> end ISR;
But can you initialise the array with different routines? I'm betting
not. In a real implementation, there will be a number of ISR's but
some may point to the dummy one.
Luke.
next prev parent reply other threads:[~2011-04-10 21:19 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
2011-04-10 20:47 ` Georg Bauhaus
2011-04-10 21:19 ` Lucretia [this message]
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