Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!oberon!sdcrdcf!hplabs!hpda!hpcuhb!hpcllla!hpcllz2!walter From: walter@hpcllz2.HP.COM (Walter Murray) Newsgroups: comp.lang.c Subject: Re: Optimal structure field ordering Message-ID: <7330005@hpcllz2.HP.COM> Date: 28 Jun 88 23:53:43 GMT References: <163@navtech.uucp> Organization: HP NSG/ISD Computer Language Lab Lines: 14 Doug Gwyn writes: >In article <164@navtech.uucp> mark@navtech.UUCP (Mark Stevans) writes: >>Some responder pointed out correctly that there is no guarantee in the C >>language that the compiler will preserve your field ordering >Oh, yes there is. >---------- Or, to quote the proposed standard (January, 1988, draft): "Within a structure object, the non-bit-field members and the units in which bit-fields reside have addresses that increase in the order in which they are declared."