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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,519548e8e060e18e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-14 00:45:19 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!news.duke.edu!news-feed-1.peachnet.edu!emory!swrinde!cs.utexas.edu!not-for-mail From: britt@madrid.46tg.af.mil (Britt Snodgrass) Newsgroups: comp.lang.ada Subject: VADS 8-byte component alignment constraint Date: 13 Sep 1994 17:06:08 -0500 Organization: UTexas Mail-to-News Gateway Sender: nobody@cs.utexas.edu Message-ID: <199409132206.RAA16031@news.cs.utexas.edu> NNTP-Posting-Host: news.cs.utexas.edu Date: 1994-09-13T17:06:08-05:00 List-Id: I'm attempting to port some avionics data processing code from an HP 9000/380 (68040 CPU) to an HP 9000/735 (PA-RISC CPU) (both running HP-UX Unix) and to an i486 PC (running Windows NT "3.1"). The Ada compiler is VADS 6.0 on the 9000/380 and VADS 6.2 on the other two. Code that compiles and runs on the 9000/380 results in "component must be aligned on a 8 byte boundary" error messages when compiling certain record structures on the other two machines. I initially thought this was something due to the RISC processor but VADS for the Intel processor has the same constraint. In general I can't get around this by padding the record structures because the record has to exactly match the data records on disk. I am forced to read the data into a Boolean array of the proper length and then map the Boolean bits to the original record using address representation clauses. This is a really ugly way to code but I haven't found a better solution. Has anyone else encountered this problem and is there a semi-elegant workaround? ======================================================================= Capt Britt Snodgrass e-mail: britt@madrid.46tg.af.mil =======================================================================