<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: #pragma pack() in linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937002#M76725</link>
    <description>pragma&lt;BR /&gt;An ANSI C command comment that conveys non-essential yet pragmatic information, often to help with optimization when compiling.&lt;BR /&gt;&lt;BR /&gt;Here is a Red Hat link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.redhat.com/docs/manuals/gnupro/GNUPro-Toolkit-00r1/pdf/2_compile.pdf" target="_blank"&gt;http://www.redhat.com/docs/manuals/gnupro/GNUPro-Toolkit-00r1/pdf/2_compile.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is some HP info:&lt;BR /&gt;&lt;BR /&gt;You typically use a #pragma directive to control the actions of the compiler in a particular portion of a translation unit without affecting the translation unit as a whole.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/1559/pragmas.htm&amp;amp;searchterms=pragma&amp;amp;queryid=20030327-055643" target="_blank"&gt;http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/1559/pragmas.htm&amp;amp;searchterms=pragma&amp;amp;queryid=20030327-055643&lt;/A&gt;</description>
    <pubDate>Thu, 27 Mar 2003 13:05:46 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-03-27T13:05:46Z</dc:date>
    <item>
      <title>#pragma pack() in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937001#M76724</link>
      <description>what is a #pragma pack()? how to use it in gcc compiler. &lt;BR /&gt;     send me the answer as soon as possible.</description>
      <pubDate>Thu, 27 Mar 2003 10:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937001#M76724</guid>
      <dc:creator>satish_16</dc:creator>
      <dc:date>2003-03-27T10:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma pack() in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937002#M76725</link>
      <description>pragma&lt;BR /&gt;An ANSI C command comment that conveys non-essential yet pragmatic information, often to help with optimization when compiling.&lt;BR /&gt;&lt;BR /&gt;Here is a Red Hat link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.redhat.com/docs/manuals/gnupro/GNUPro-Toolkit-00r1/pdf/2_compile.pdf" target="_blank"&gt;http://www.redhat.com/docs/manuals/gnupro/GNUPro-Toolkit-00r1/pdf/2_compile.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is some HP info:&lt;BR /&gt;&lt;BR /&gt;You typically use a #pragma directive to control the actions of the compiler in a particular portion of a translation unit without affecting the translation unit as a whole.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/1559/pragmas.htm&amp;amp;searchterms=pragma&amp;amp;queryid=20030327-055643" target="_blank"&gt;http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/1559/pragmas.htm&amp;amp;searchterms=pragma&amp;amp;queryid=20030327-055643&lt;/A&gt;</description>
      <pubDate>Thu, 27 Mar 2003 13:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937002#M76725</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-27T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma pack() in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937003#M76726</link>
      <description>hi,&lt;BR /&gt;  Thanks for the information.&lt;BR /&gt;currently i am working with linux.i want's to use the #pragma pack() in nested structures.so please send me the &lt;BR /&gt;syntax with an example.</description>
      <pubDate>Sat, 29 Mar 2003 05:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937003#M76726</guid>
      <dc:creator>satish_16</dc:creator>
      <dc:date>2003-03-29T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma pack() in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937004#M76727</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;from the gcc documentation :&lt;BR /&gt;&lt;BR /&gt;`packed'&lt;BR /&gt;     The `packed' attribute specifies that a variable or structure field&lt;BR /&gt;     should have the smallest possible alignment--one byte for a        &lt;BR /&gt;     variable, and one bit for a field, unless you specify a larger&lt;BR /&gt;     value with the `aligned' attribute.&lt;BR /&gt;&lt;BR /&gt;     Here is a structure in which the field `x' is packed, so that it&lt;BR /&gt;     immediately follows `a':&lt;BR /&gt;&lt;BR /&gt;          struct foo&lt;BR /&gt;          {&lt;BR /&gt;            char a;&lt;BR /&gt;            int x[2] __attribute__ ((packed));&lt;BR /&gt;          };&lt;BR /&gt;&lt;BR /&gt;HTH,Goran</description>
      <pubDate>Sat, 29 Mar 2003 13:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/pragma-pack-in-linux/m-p/2937004#M76727</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2003-03-29T13:29:54Z</dc:date>
    </item>
  </channel>
</rss>

