From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 29 Sep 92 16:11:12 GMT From: agate!spool.mu.edu!sdd.hp.com!cs.utexas.edu!sun-barr!west.West.Sun.COM!cr onkite.Central.Sun.COM!texsun!yorktown!young@ucbvax.Berkeley.EDU (Mark Young) Subject: Declaring Arrays of Bits (how)? Message-ID: List-Id: I am trying to declare arrays of bits in Ada. Here's my attempt: type Array_Range_Type is range 1..128; type Bit_Type is (OFF, ON); for Bit_Type use (OFF => 0, ON => 1); for Bit_Type'size use 1; type Bit_Array_Type is array (Array_Range_Type) of Bit_Type; Bit_Array : Bit_Array_Type; This looks right to me. I would expect Bit_Array to be represented as an array of 128 bits (128 contiguous bits). This is not the case, however. My compiler (XDADA) is representing Bit_Array as an array of 128 bytes. As an added note, I have been using representation clauses for records without any problems. Am I missing something? Is there a special representation clause for arrays that I am overlooking? Is my compiler at fault? Thanks for the INPUT, Mark Young