From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ronald G. Minnich" To: 9fans@cse.psu.edu Subject: Re: [9fans] how to avoid a memset() optimization In-Reply-To: <3DD35857.8080701@null.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Thu, 14 Nov 2002 10:07:44 -0700 Topicbox-Message-UUID: 1ff934ac-eacb-11e9-9e20-41e7f4b1d025 On Thu, 14 Nov 2002, Douglas A. Gwyn wrote: > Ronald G. Minnich wrote: > > struct x { > > int a; > > int b; > > }; > > resulting in code in which a and b are laid out in memory in the same > > order as in the structure (this due to C++). Structure members can get > > reordered. > > Not in Standard C. hmmm, is gcc 3.2 standard C? :-) ron