comp.lang.ada
 help / color / mirror / Atom feed
* Record -> Array in Ada
@ 1996-08-20  0:00 Mike Roske
  1996-08-20  0:00 ` George Haddad
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Mike Roske @ 1996-08-20  0:00 UTC (permalink / 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..."                     
*-------------------------------------------------------*




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-08-20  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-20  0:00 Record -> Array in Ada Mike Roske
1996-08-20  0:00 ` 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

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