delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/04/29/22:37:07

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: structure packing/allingment
29 Apr 1998 22:37:07 -0700 :
Message-ID: <9804300514.AA10682.cygnus.cygwin32.developers@modi.xraylith.wisc.edu>
References: <3547c180 DOT 23407674 AT smtp DOT goodnet DOT com>
To: jeffdb AT goodnet DOT com
Cc: cygwin32-developers AT cygnus DOT com

jeffdbREMOVETHIS AT goodnet DOT com (Mikey) writes:
> 
> #define PCC_BITFIELD_TYPE_MATTERS 0
> this was defined in the emx port, and the guy apparently
> knows what he is doing with structure alignment. 
> ( I couldn't run the test at the end because I don't have cl.exe :)
> If this is handeled somewhere else in the gcc config files,
> I couldn't find it.

Mikey, good catch! Here's what I get from GCC and MSVC4:

    $ ./bitpack-gcc.exe 
    Size of foo1 is 2
    Size of foo2 is 5
    $ ./bitpack-msvc4.exe         
    Size of foo1 is 2
    Size of foo2 is 2

Mumit

ps: I still haven't had time to look at your latest ld patches. Sorry. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019