Cygwin struct alignment
Mon Dec 29 18:59:00 GMT 2008
On Mon, Dec 29, 2008 at 06:29:09PM -0000, John Emmas wrote:
> Christopher / Reini - thanks for your tips.
>On Mon, Dec 29, 2008 at 07:09:30PM +0100, Reini Urban wrote:
>>Which "Cygwin compiler"? I have about a dozen compilers in my cygwin
>>environment. If you mean gcc-core-3.4.4-3 or
>>gcc-mingw-core-3.4.4-20050522-1 please say so.
>Oops sorry, I did miss out that important fact didn't I? I meant
>>Cygwin per se infers no struct alignment at all
>I'll be doing some further checks tomorrow but up until now, the struct
>alignment of gcc-core-3.4.4-3 seems to match MS Visual C++ when VC++ is
>set to 8-byte alignment (at least - it matches it more closely than
>when I set VC++ to 1-byte alignment). I'm not suggesting that either
>compiler is at 'fault' in any sense; they just do the same job slightly
>differently. This is why I want to find out what happens when they're
>both set to "no packing".
I still can't shake the feeling that you're attempting to do this with
trial and error and googling rather than reading the gcc documentation.
You can also find various flavors of gcc documentation at gcc.gnu.org.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin