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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,eb64de1902329f4f,start X-Google-Attributes: gid103376,public From: Mike Roske Subject: Record -> Array in Ada Date: 1996/08/20 Message-ID: <321991BE.41C67EA6@mailgw.sanders.lockheed.com>#1/1 X-Deja-AN: 175282034 content-type: text/plain; charset=us-ascii organization: Lockheed Sanders mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (X11; I; SunOS 4.1.4 sun4m) Date: 1996-08-20T00:00:00+00:00 List-Id: 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..." *-------------------------------------------------------*