Compiler Specific Operators

barmar at mit-eddie.UUCP barmar at mit-eddie.UUCP
Sun Jul 13 04:37:55 AEST 1986


Rather than inventing operators that are known to be unportable, why not
write the operations as function calls, and teach compilers to open-code
calls to certain functions.  You would, of course, need compiler
directives to override this, in case you are planning on linking the
program with a different version of the library function.

Fortran, PL/I, and Lisp compilers have been doing this for years.  Just
because something is written as a function call does not mean that it
has to be implemented as one.
-- 
    Barry Margolin
    ARPA: barmar at MIT-Multics
    UUCP: ..!genrad!mit-eddie!barmar



More information about the Comp.lang.c mailing list