C Interpreter (Not Compiler)? [duplicate]
Possible Duplicate:
Is there an interpre开发者_JS百科ter for C?
Is there a "C implementation" which acts the same as the "C abstract machine" when executing a C program? That is, a simple interpreter for C as it is described in a C standard such as C99.
There are many implementations of the C programming language that are compilers (Clang, GCC, MSVC). I'm looking for an open source implementation of a C interpreter.
CINT - http://root.cern.ch/drupal/content/cint But it is not C99 AFAIK.
google "cint", "ch".
I like tcc (also there are some links that my prove fruitful in there). tcc is basically a compiler, but you call it with a shebang line
#!/usr/local/bin/tcc -run
#include <stdio.h>
int main(void) { puts("Hello, World!"); return 0; }
Ch is "an embeddable C/C++ interpreter and scripting language for cross-platform scripting, numerical computing, shell programming, 2D/3D plotting, quick animation, and embedded scripting."
精彩评论