Re: Bloated Struct Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



". ." <pkejjy@xxxxxxxxx> writes:

> On Fri, Jun 5, 2009 at 5:30 PM, Ian Lance Taylor<iant@xxxxxxxxxx> wrote:
>> ". ." <pkejjy@xxxxxxxxx> writes:
>>
>>> (In other words, I think the default for x86(-64) should be packed,
>>> but I'll leave it to others to have that flame war.)
>>
>> The ABI can not change.  Changing that now would prevent linking object
>> files compiler by different compilers together safely, as they would use
>> different offsets for accessing struct fields.
>
> Yuck -- I see your point.  But, there could still be a commandline
> switch to pack all structs (like -Os, but for data).  No, I don't
> expect anyone to actually create this anytime soon, but it would be a
> handy tool for manycore optimization endeavors.

The command line option is -fpack-struct.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux