the one and only objection to C

Gary M. Samuelson garys at bunker.UUCP
Thu Jan 3 00:28:20 AEST 1985


In response to Ken Yap:

> ... it seems that people who write device drivers are
> making assumptions about how their compiler aligns fields. Given that
> the drivers are not portable anyway, this is not an issue.

If I cannot "make assumptions" about how the compiler aligns fields,
then I cannot use the compiler to write a device driver at all,
can I?

I suppose I could start by figuring out what assembly language code
I expect the compiler to generate, and then diddle with the source
until I got the result I wanted, but if I have to do that, I might
as well write in assembly in the first place.

Gary Samuelson
ittvax!bunker!garys



More information about the Comp.lang.c mailing list