This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: overlooked implementation


> Date: Wed, 19 Apr 2000 20:43:26 -0500 (CDT)
> From: "Mark M. Young" <youngmm@hera.wku.edu>
> To: gcc-bugs@gcc.gnu.org, Sherman Adelson <AdelsS@hera.wku.edu>

> A friend of mine was interested in using as small amount as possible for a
> network protocol and ran across bit-fields.  He was asking me some
> questions and I found some implementation errors that I find quite
> serious.

Welcome to programming in C.  These are not bugs in the compiler, only
bugs in your understanding of C.  Would be nice if C mandated bitfield
ordering, or ways to pack data, but it didn't.  Some platforms used
one ordering others use different ordering, and gcc just tried to be
compatible with whatever random scheme the original vendor came up
with.  Sorry, you loose.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]