Facing problem with bit fields, when i am compiling my code with GCC.

Richard Guenther richard.guenther@gmail.com
Wed Apr 5 10:19:00 GMT 2006


On 4/5/06, Devendra Mulakkayala <dmulakkayala@indusrad.com> wrote:
> 2. I know that these bit fields are compiler dependent. Is there any option
> in GCC to set the bit fields from top to bottom ( MSB to LSB )
> in structure.
> 3. As per the client requirement we are not supposed to change the code. I
> am looking for any option or any other way to solve this problem.
>
> Please help me in this

You can use -mms-bitfields on x86 I think.

Richard.



More information about the Gcc mailing list