|Searching for a C/C++ Interpreter written in pure Java email@example.com (Michael Hielscher) (2011-01-20)|
|Searching for a C/C++ Interpreter written in pure Java firstname.lastname@example.org (Steven Shaw) (2011-01-23)|
|Re: Searching for a C/C++ Interpreter written in pure Java Colin_Paul_Gloster@ACM.org (Colin Paul Gloster) (2011-02-01)|
|Re: Searching for a C/C++ Interpreter written in pure Java email@example.com (Roberto Waltman) (2011-02-05)|
|From:||Steven Shaw <firstname.lastname@example.org>|
|Date:||Sun, 23 Jan 2011 13:15:15 -0800 (PST)|
|Keywords:||C, interpreter, Java|
|Posted-Date:||23 Jan 2011 21:35:33 EST|
You could use Cint - the only C and C++ interpreter I know.
To access from your Java applet you'd need JNI and a signed applet.
Alternatively, if you need to stay within safe/managed code, there are one or
two open source projects - who's names escape me unfortunately - that allow
you to compile your native app (usually using a cross compiler) and then load
and interpret the machine object code. Not fast, especially since your native
library is another interpreter, but it might be good enough and a fun hack to
Return to the
Search the comp.compilers archives again.