64 bit architectures and C/C++

Henry Spencer henry at zoo.toronto.edu
Sat May 25 02:49:26 AEST 1991


In article <4383 at inews.intel.com> bhoughto at pima.intel.com (Blair P. Houghton) writes:
>More to the point:  the driver developer is going to be
>doing many things more heinous than bit-fields...
>ANSI C is specifically not designed for that sort of work.

Au contraire; C was designed for that sort of work from the beginning,
since that was its first major application, and ANSI C did not break this.
One needs to be a bit careful nowadays about using things like "volatile",
since modern C compilers are much more aggressive than the DMR original
that was used to rewrite the Unix kernel in C, but that's a detail.

>Such things are often better done in assembler, anyway
>(regardless of ease-of-maintenance).

They are *almost* always better done in C.  Given a good compiler, it's
rare for something to be doable in assembler but not in C.
-- 
And the bean-counter replied,           | Henry Spencer @ U of Toronto Zoology
"beans are more important".             |  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.lang.c mailing list