Re: structure layout in C

macrakis@osf.org (Stavros Macrakis)
Wed, 13 May 1992 00:42:10 GMT

          From comp.compilers

Related articles
structure layout in C muller@src.dec.com (1992-05-11)
Re: structure layout in C macrakis@osf.org (1992-05-13)
Re: structure layout in C stephen@estragon.uchicago.edu (1992-05-13)
Re: structure layout in C bliss@sp64.csrd.uiuc.edu (1992-05-15)
| List of all articles for this month |
Newsgroups: comp.compilers
From: macrakis@osf.org (Stavros Macrakis)
Keywords: C
Organization: OSF Research Institute
References: 92-05-066
Date: Wed, 13 May 1992 00:42:10 GMT

In article 92-05-066 John writes:


      [Every compiler I've ever seen aligns each field on its natural
      boundary ... As I recall, ANSI specifically forbids reordering
      fields to pack them in better.


Yes, so in general you have to choose between readability and good
packing. As `natural boundaries' become larger, this becomes more
important. Ah, the marvels of C.


-s
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.