comp.lang.ada
 help / color / mirror / Atom feed
From: vashwath@rediffmail.com (prashna)
Subject: Re: Learning Ada-What does this mean.
Date: 12 Sep 2002 21:19:37 -0700
Date: 2002-09-13T04:19:38+00:00	[thread overview]
Message-ID: <d40d7104.0209122019.66994f69@posting.google.com> (raw)
In-Reply-To: k6Mf9.76945$Jo.17889@rwcrnsc53

> 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.



  reply	other threads:[~2002-09-13  4:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-11 11:58 Learning Ada-What does this mean prashna
2002-09-11 12:26 ` Georg Bauhaus
2002-09-13  4:24   ` prashna
2002-09-13 12:46     ` Georg Bauhaus
2002-09-11 14:04 ` Stephen Leake
2002-09-11 14:31 ` Pascal Obry
2002-09-11 14:50   ` Peter Hermann
2002-09-11 18:40 ` tmoran
2002-09-13  4:19   ` prashna [this message]
2002-09-13  4:52     ` tmoran
2002-09-13 11:00     ` David C. Hoos, Sr.
replies disabled

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