[comp.lang.c] replacing functions at compile time

chris@mimsy.UUCP (Chris Torek) (04/03/88)

>>... 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@hpfclq.HP.COM> mike@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@mimsy.umd.edu	Path:	uunet!mimsy!chris