From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "Douglas A. Gwyn" Message-ID: <3DD35857.8080701@null.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit References: <29597830.1037174088@WAAKZAAMHEID>, Subject: Re: [9fans] how to avoid a memset() optimization Date: Thu, 14 Nov 2002 10:21:44 +0000 Topicbox-Message-UUID: 1e90d57a-eacb-11e9-9e20-41e7f4b1d025 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.