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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d000078cf0ac6305 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-12 21:19:38 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: vashwath@rediffmail.com (prashna) Newsgroups: comp.lang.ada Subject: Re: Learning Ada-What does this mean. Date: 12 Sep 2002 21:19:37 -0700 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 203.90.88.229 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1031890778 12057 127.0.0.1 (13 Sep 2002 04:19:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Sep 2002 04:19:38 GMT Xref: archiver1.google.com comp.lang.ada:28898 Date: 2002-09-13T04:19:38+00:00 List-Id: > If a "storage element" on the target machine is 32 bits wide, then the Thanks tmoran, thank u very much. > first one will hold INT_1 and the second INT_2. Is a storage element on > AIX 32 bits wide? On a PC a "storage element" is an 8 bit byte, so INT_1 > occupies the first 4 bytes. INT_2 starts at the second byte, ie, 1/4 of > the way into INT_1, and takes the next 4 bytes. So INT_1 and INT_2 > overlap on a PC. This is illegal, and the Gnat compilation error message > ought to be telling you that. u r right tmoran and This was the error message that gnat was giving, "component "DATE_32" overlaps "WORD"". Sorry for not posting this(error message) in my original post. One more help tmoran,How do we now what is the size of the storage element? > For the PC you probably want instead > for T_MEM_IO use > record > INT_1 at 0 range 0..31; > INT_2 at 4 range 0..31; > end record; > so INT_2 starts right after INT_1. > The name "T_MEM_IO" suggests this record might indeed be something used > by a hardware device - is that going to work the same on the PC as the AIX? I have no Idea of what This record does coz I have just entered in to this software field and I am doing code walk through and I came across this piece of code. Thanks for all those who have replied.