| Related articles |
|---|
| Searching for a C/C++ Interpreter written in pure Java hier.mail.einwerfen@gmail.com (Michael Hielscher) (2011-01-20) |
| Searching for a C/C++ Interpreter written in pure Java steshaw@gmail.com (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 usenet@rwaltman.com (Roberto Waltman) (2011-02-05) |
| From: | Steven Shaw <steshaw@gmail.com> |
| Newsgroups: | comp.compilers |
| Date: | Sun, 23 Jan 2011 13:15:15 -0800 (PST) |
| Organization: | Compilers Central |
| References: | 11-01-099 |
| 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.
http://root.cern.ch/drupal/content/cint
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
boot!
Return to the
comp.compilers page.
Search the
comp.compilers archives again.