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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Allocators design flaw Date: Sat, 14 Oct 2017 15:35:11 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="e53c3a1e14119dea7f561d1d98279ae1"; logging-data="19178"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7qkNSB8SMh5pN4puwaPVz0KEClUod9f8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:BT3MypYE3p7CEbjH2IjuruaPzos= sha1:lhS56JHovsWoYqKPwDeP2k7BTQM= Xref: news.eternal-september.org comp.lang.ada:48459 Date: 2017-10-14T15:35:11+01:00 List-Id: Victor Porton writes: >> If the C struct needs alignment greater than that of the elements of >> which it is composed (see the AI for example) it would have it. > > "it would have it"? What this sequence of English words mean? it would have such an alignment struct chrs { char c[10]; } only *needs* alignment of 1 struct chrs { int last; char c[256]; } needs the alignment of int (4 on this Mac) (aploogies if the C isn't correct)