I\'ve spent days of research over the seemingly simple question: is it possible to run C code in a browser at all? Basically, I have a site set up in Appengine that needs to
It's appallingly evil, but you may be able to compile the cint C/C++ interpreter with emscripten. That would give you a browser-only environment which can interpret (slowly) C or C++ programs.
Unfortunately, cint claims to support mixing of interpreted code with precompiled code. This means that it's going to want to do things which emscripten won't support, so you'll have to hack it.
If you're willing to restrict yourself to Chrome you may find it easier to compile cint via the NaCL plugin system, because that means you can use a real x86 toolchain. But this won't let you use a real compiler; NaCL doesn't allow the dynamic generation of machine code, so systems like tcc won't work. cint may be easier to port on this platform, though.