<?xml version="1.0"?>
<rss version="2.0">
<channel>

  
<title>Unidata Developer&#039;s Blog - C Struct Layout Rules</title>
<link>http://www.unidata.ucar.edu:80/blogs/default/2009/03/30/1238442300000.html</link>
<description>[Revised 5/5/2009] The issue of the layout of C struct data type fields has cropped up a number of times recently, so it seems appropriate to document the apparent layout rules.</description>
<language>en</language>
<managingEditor>Dennis Heimbigner</managingEditor>
<lastBuildDate>Wed, 13 May 2009 20:31:02 GMT</lastBuildDate>
  
  

  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Re: C Struct Layout Rules</title>
    <link>http://www.unidata.ucar.edu:80/blogs/default/2009/03/30/1238442300000.html#comment1238449908708</link>
    <description>
      Yup.&lt;br /&gt;
&lt;br /&gt;
A corollary to this is that, when creating a structure from scratch, order the members by decreasing alignment size in order to minimize unused space.
    </description>
    <author>Steve Emmerson</author>
    <comments>http://www.unidata.ucar.edu:80/blogs/default/2009/03/30/1238442300000.html#comments</comments>
    <guid isPermaLink="true">http://www.unidata.ucar.edu:80/blogs/default/2009/03/30/1238442300000.html#comment1238449908708</guid>
    <pubDate>Mon, 30 Mar 2009 21:51:48 GMT</pubDate>
  </item>
  
  </channel>
</rss>
