evaluating math w/o recompile

Henry Spencer henry at utzoo.uucp
Sun Sep 17 14:21:57 AEST 1989


In article <225800223 at uxe.cso.uiuc.edu> mcdonald at uxe.cso.uiuc.edu writes:
>>You can't.  There is no way that line of math can be *executed* without
>>compiling it (in a very broad sense of the word), so trying to do it with
>>no recompiles is futile.  Either you invoke the C compiler, or you write
>>a mini-compiler as part of your program...
>
>Or, if you need to do it once or only a couple of times, write
>an interpreter. An interpreter can be written in portable C. 
>A compiler, of course, can't. You have to know the machine code.

You are assuming a very narrow definition of "compiler".  Note the phrase
"in a very broad sense of the word".  Not all translators referred to
as "compilers" generate machine code.
-- 
"Where is D.D. Harriman now,   |     Henry Spencer at U of Toronto Zoology
when we really *need* him?"    | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list