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-Language: ENGLISH,ASCII X-Google-Thread: 103376,53e7676420bfb57e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-01 14:49:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Convert Integer_Address and Address? Date: 01 Oct 2001 17:49:21 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <9p9l2n$s5c$1@newstoo.ericsson.se> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: skates.gsfc.nasa.gov 1001973058 24421 128.183.220.71 (1 Oct 2001 21:50:58 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 1 Oct 2001 21:50:58 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:13599 Date: 2001-10-01T21:50:58+00:00 List-Id: "Sebastian" 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