comp.lang.ada
 help / color / mirror / Atom feed
From: Mike Roske <mroske@mailgw.sanders.lockheed.com>
Subject: Record -> Array in Ada
Date: 1996/08/20
Date: 1996-08-20T00:00:00+00:00	[thread overview]
Message-ID: <321991BE.41C67EA6@mailgw.sanders.lockheed.com> (raw)


I am looking for opinions.  Do you think I might find some here? ;-)

I have the following programming need in some Ada83 software and am
looking for the "best" solution:

I have a record structure that must be transmitted via comm channel
(MIL-STD-1553B, but let's say any 16-bit oriented channel).

What's the best way to split the record into 16-bit slices for 
transmission?

I have identified the following options:

1) Unchecked_Conversion into a fixed size array.  (And if I do this, how
do I get the array bounds set correctly?)

2) Pass Record'Address and Record'Size into a subprogram.  Inside the
subprogram, declare an array of the appropriate size, located at the
appropriate address.  (have prototyped this one, and it works.)

3) Ask in c.l.a for suggestions.  (hi there!)

Thanks in advance for the help!

--> Mike



-- 
*-------------------------------------------------------*
* Michael Roske
* Sanders, A Lockheed Martin Company
* mroske@mailgw.sanders.lockheed.com
* (603) 885-9240
*-------------------------------------------------------*
* "I'd rather be flying RC..."                     
*-------------------------------------------------------*




             reply	other threads:[~1996-08-20  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-20  0:00 Mike Roske [this message]
1996-08-20  0:00 ` Record -> Array in Ada George Haddad
1996-08-20  0:00 ` Ted Dennison
1996-08-20  0:00 ` Dave Marshall
1996-08-20  0:00   ` Robert I. Eachus
1996-08-20  0:00 ` Robert Dewar
replies disabled

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