Re:Emscripten - An LLVM-to-Javascript compiler
by nl on Sunday August 29, 2010 @07:09PM
(#1644827)
I don't understand what you are asking for here.
Emscriptem doesn't generate C/C++ code, it generates Javascript, which then runs on top of a Javascript execution environment (V8 etc).
The real comparison would be some C/C++ code run though this and running in Javascript vs handwritten Javascript.
(It's possible what you mean is a comparison of the generated machine code from LLVM vs that from the Javascript engine. I agree that would be interesting, but I think you'd be better off comparing the machine code generated by a Javascript-on-LLVM implementation such as http://github.com/omo/jsllc vs that generated by a conventional Javascript runtime.)
Emscriptem doesn't generate C/C++ code, it generates Javascript, which then runs on top of a Javascript execution environment (V8 etc).
The real comparison would be some C/C++ code run though this and running in Javascript vs handwritten Javascript.
(It's possible what you mean is a comparison of the generated machine code from LLVM vs that from the Javascript engine. I agree that would be interesting, but I think you'd be better off comparing the machine code generated by a Javascript-on-LLVM implementation such as http://github.com/omo/jsllc vs that generated by a conventional Javascript runtime.)