How portable are bitfields?

Chip Salzenberg chip at tct.uucp
Wed Sep 12 02:00:48 AEST 1990


According to kam2 at csd4.csd.uwm.edu (Keith A Mcmillan):
>Alternatively, you can define the structure of the fields inside of 
>a #ifdef for the machine type.

This strategy is a big-time loser when you have more than one compiler
on your system.  For example, SCO Unix has AT&T and Microsoft
compilers, and I've installed GCC.  Do they have the same bitfield
algorithm?  Beats me -- but I wouldn't count on it.
-- 
Chip Salzenberg at Teltronics/TCT     <chip at tct.uucp>, <uunet!pdn!tct!chip>



More information about the Comp.lang.c mailing list