This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: overlooked implementation
- To: AdelsS at hera dot wku dot edu, gcc-bugs at gcc dot gnu dot org, youngmm at hera dot wku dot edu
- Subject: Re: overlooked implementation
- From: Mike Stump <mrs at windriver dot com>
- Date: Wed, 19 Apr 2000 20:39:10 -0700 (PDT)
> 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.