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,b93f800319d6e6e7 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Aligning record components Date: 1997/07/08 Message-ID: #1/1 X-Deja-AN: 255524596 References: <01bc8b3a$d9161b80$7175b89e@Ken'slaptop.ssd.loral.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-07-08T00:00:00+00:00 List-Id: kgamble says <> Of course GNAT supports 2-byte alignments on a target where 2-byte alignment is natural. Alignment requirements are highly target dependent! GNAT does allow misaligned integers, because this is a widely used feature. An Ada 95 compiler is not required to allow *any* misalignment, and GNAT does not bother to allow misaligned floating-point for two reasons One techncail a) the cost of unaligned fpt access is MUCH higher than unaligned integer access on a typical machine One non-techncial b) none of our customers have ever indicated a desire for this feature It would not be that hard to do, but would be non-zero work. You could of course build a new configuration file with diminished alignment requirements.