Code Generation (register byte, short...)

Garry Wiegand garry at lasspvax.UUCP
Wed Nov 27 12:42:57 AEST 1985


The definition of "int" I carry around in my head is "use whatever length
is natural and convenient on this machine; makes no difference to me."
There may be compilers that do not adhere to this (my 68000 compiler
requires a command-line switch), but I think that qualifies as a compiler
bug and a #define is in order.

As far as I've ever observed, word instructions execute at just about the
same speed as longword instructions on the vax -- ie, no penalty -- unless
you start mixing them.

garry wiegand

garry%geology at cu-arpa.cs.cornell.edu



More information about the Comp.lang.c mailing list