4 ms·
There are C interpreters around, like "cint" -- http://root.cern.ch/drupal/content/cint http://root.cern.ch/drupal/content/cint -- which is somewhat more stable
by Erwin 17y ago
There are C interpreters around, like "cint" -- http://root.cern.ch/drupal/content/cint http://root.cern.ch/drupal/content/cint -- which is somewhat more stable, having been around since 1995.
This C-REPL one seems to have the advantage of using gcc directly while cint is basically its own compiler.
If being able to "evaluate" C code like that gives you some ideas, you might want to have a look at "libtcc" -- which seems to be getting some development love again compared to last time I looked at it (finally an x86-64 target). (I have some higher level code that converts well to C that libtcc or a gcc/dlopen approach would be nice for)