Casting Pointers

jack at hp-dcde.UUCP jack at hp-dcde.UUCP
Mon Jan 30 17:35:00 AEST 1984

Mr. Bloom states that you don't want casts (in this case), because casts
generate calls to routines that will perform type conversion rather than
inline code.

Not on our 68000 C compiler!  One can certainly consider architectures
where (char *) is represented differently than (long *), but on a 68000
they're both just a 32-bit (or 24-bit) address.

The ultimate solution is for each user to check the output
of his own compiler, but any compiler that generates code for this
type cast on a 68000 is pretty dubious.

						-Jack Applin

More information about the Comp.lang.c mailing list