comp.lang.ada
 help / color / mirror / Atom feed
From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Best representation for spares
Date: Sat, 15 Feb 2014 14:41:50 -0800 (PST)
Date: 2014-02-15T14:41:50-08:00	[thread overview]
Message-ID: <40f0bb5d-b1ed-48d4-8fee-f12dc44cee50@googlegroups.com> (raw)
In-Reply-To: <4468c222-28ce-46f2-91e3-78d34be01eb0@googlegroups.com>

On Saturday, February 15, 2014 8:37:36 PM UTC-2, Rego, P. wrote:
> On Saturday, February 15, 2014 7:41:56 PM UTC-2, Jeffrey Carter wrote:
> 
> > Zero is not a valid value for the components of Spare, since it's a boolean type.
> 
> 
> 
> 
> 
> Oh yes, I actually used 
> 
>     type Zero_Bit is range 0 .. 1; 
> 
>     Spare : Zero_Bits (3 .. 31) := (3 .. 31 => 0);
> 
> 
> 
> but in this case
> 
> > default initialization of "Auxiliary_Peripherals_Register_Map" may modify overlaid storage 
> 
> > use pragma Import for "Auxiliary_Peripherals_Register_Map" to suppress initialization (RM B.1(24)) 
> 
> 
> 
> Do you have an idea?

I took a look on ARM B.1(24), and it says

"The declaration of an imported object shall not include an explicit initialization expression. Default initializations are not performed."

So what should actually happen in this case if I use 
 Spare : Zero_Bits (3 .. 31) := (3 .. 31 => 0);
?


  reply	other threads:[~2014-02-15 22:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  1:07 Best representation for spares Rego, P.
2014-02-14  9:19 ` Simon Wright
2014-02-15 16:06   ` Rego, P.
2014-02-15 17:49     ` Jeffrey Carter
2014-02-15 20:21       ` Rego, P.
2014-02-15 19:55     ` Niklas Holsti
2014-02-15 20:25       ` Rego, P.
2014-02-15 21:35         ` Rego, P.
2014-02-16 10:02           ` Niklas Holsti
2014-02-16 13:40             ` Rego, P.
2014-02-16 16:26               ` Rego, P.
2014-02-16 18:50                 ` Niklas Holsti
2014-02-16 16:33               ` Niklas Holsti
2014-02-16 12:10           ` Simon Wright
2014-02-16 13:43             ` Rego, P.
2014-02-16 14:25               ` Robert A Duff
2014-02-16 16:21                 ` Rego, P.
2014-02-15 21:41         ` Jeffrey Carter
2014-02-15 22:37           ` Rego, P.
2014-02-15 22:41             ` Rego, P. [this message]
2014-02-16  0:39             ` Jeffrey Carter
2014-02-16 12:06         ` Simon Wright
2014-02-16 13:45           ` Rego, P.
replies disabled

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