replacing functions at compile time

Chris Torek chris at mimsy.UUCP
Sun Apr 3 21:21:27 AEST 1988


>>... Calls to external functions can be treated atomically, as "black
>>boxes" -- but there's no rule that says they *have* to be.

In article <3850011 at hpfclq.HP.COM> mike at hpfclq.HP.COM (Mike McNelly) writes:
>... True, the compiler can certainly understand the semantics of a
>routine such as printf() ....  However, there's no guarantee that the
>programmer doesn't have his own version of these routines ... [unless]
>you reserve these names as part of the language ....

The draft ANSI standard for C does reserve those names as part of
the language.  One reason is just so that compilers *can* do this
sort of optimisation.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list