* Re: Convert Integer_Address and Address?
[not found] <9p9l2n$s5c$1@newstoo.ericsson.se>
@ 2001-10-01 21:49 ` Stephen Leake
0 siblings, 0 replies; only message in thread
From: Stephen Leake @ 2001-10-01 21:49 UTC (permalink / raw)
"Sebastian" <sebastian.madunic@esavionics.se> writes:
> Hi,
>
> �
>
> If you have a constant like this:
>
> �
>
> register_Address : constant 16#FE10_2000#;
>
> �
>
> and you use the function To_Address in System.Storage_Elements package, What
> will be the actual result?
You can think of System.Storage_Elements.To_Address as a simple type
conversion. That is, on a system with 32 bit addresses, To_Address
(register_Address) will return a value of type Address with the value
16#FE10_2000#.
On another system that has only 16 bit addresses, you might get
Constraint_Error or something.
> Will this mean that the variable register_Address� will get the
> adress 16#FE10_2000#?
'register_Address' is _not_ a variable; it does not occupy space in
RAM. In Ada terminology, it is a "named number"; in plain English,
it's a "constant".
I'm not sure what you are asking.
What are you doing with the result of the To_Address call? Show the
rest of the code!
--
-- Stephe
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-01 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <9p9l2n$s5c$1@newstoo.ericsson.se>
2001-10-01 21:49 ` Convert Integer_Address and Address? Stephen Leake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox