fast code and no morals
Henry Spencer
henry at utzoo.UUCP
Thu Feb 6 07:39:16 AEST 1986
> > Assembler isn't portable, C is. ...
>
> "C" is as portable as Stonehedge!! At least assembler languages don't
> pretend to be portable. You know that there is work to go from system to
> system. The "security" of porting with "C" is the killer - the insidious
> differences between implementations can kill you because you don't expect
> them and can't plan well for them.
How curious. At U of T we routinely move C code among half a dozen or so
different processors (more than that if you count different C compilers
for things like the 68000). Compile it and it runs.
C's portability is more than just pretense. Of course, you have to know
what you're doing when you write the code. There is *no* "security" in
porting with C; it is easy to write unportable C, and writing portable
C takes knowledge, care, and attention. Once you get used to it, it's
not hard. We can and do plan for the aspects that vary between machines.
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!henry
More information about the Comp.lang.c
mailing list