overlooked implementation

Mike Stump mrs@windriver.com
Wed Apr 19 20:39:00 GMT 2000


> 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.


More information about the Gcc-bugs mailing list