Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!husc6!harvard!panda!genrad!mit-eddie!barmar From: barmar@mit-eddie.UUCP Newsgroups: net.lang.c Subject: Re: Compiler Specific Operators Message-ID: <2526@mit-eddie.MIT.EDU> Date: Sat, 12-Jul-86 14:37:55 EDT Article-I.D.: mit-eddi.2526 Posted: Sat Jul 12 14:37:55 1986 Date-Received: Sat, 12-Jul-86 23:04:34 EDT References: <1825@uw-beaver> Reply-To: barmar@mit-eddie.UUCP (Barry Margolin) Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 14 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@MIT-Multics UUCP: ..!genrad!mit-eddie!barmar