Casting Pointers

tjt at kobold.UUCP tjt at kobold.UUCP
Wed Feb 1 01:21:34 AEST 1984


Michael Bloom (..!bnl!mab) recommends avoiding casts since:

    I've noticed (while using adb) that using casts generates calls
    to routines that will perform type conversion, rather than the
    inline code you might expect.

On most 68000 systems (e.g. using the MIT port of PCC), a function call
is used for float-to-integer and integer-to-float type casts, but not
on integer-to-integer or integer-to-pointer casts.
-- 
	Tom Teixeira,  Massachusetts Computer Corporation.  Westford MA
	...!{ihnp4,harpo,decvax}!masscomp!tjt   (617) 692-6200 x275



More information about the Comp.lang.c mailing list