3 ms·
I want a C interpreter
by jokoon 13y ago
I want a C interpreter
- ahoge 13y agohttp://en.wikipedia.org/wiki/CINT http://en.wikipedia.org/wiki/CINT
- jokoon 13y agowhy not put that in browsers ?
- Yorrrick 13y agoTo make a complete platform, you also need APIs, so there's more to it than just picking a language. You also need to figure out how to sandbox it; CINT appears to give programmers access to unrestricted pointers. You also want to get multiple browser vendors to agree, so some kind of specification is desired; CINT targets its own unstandardized subset of C. And you ideally want it to go fast, but CINT appears to be pretty slow: http://benchmarksgame.alioth.debian.org/u32/compare.php?lang=cint http://benchmarksgame.alioth.debian.org/u32/compare.php?lang... So there'd be some work to do. You could also compile the code, but complete C compilers are not fast, in browser terms.
- mattgreenrocks 13y agoLLVM ships with lli, which can interpret LLVM bitcode generated by clang, a C compiler.