clangor
clangor copied to clipboard
Clangor to executable JS issue
I really know next to nothing about C, so pardon me if I am off here...just curious about asm.js...
Shouldn't the output from your built-in demo at http://kripken.github.io/clangor/demo.html be directly executable in your demo at http://kripken.github.io/llvm.js/demo.html ?
I'm getting this error when I try things at the latter:
Error in compilation: /bin/this.program: llvm.ll:8:20: error: expected '{' in function body
define i32 @main() #0 {
^```
Yeah I get the same error. I'm guessing the Clangor demo must've change at some point and became incompatible with that demo of LLVM.js. It probably just needs to be updated.
this is because llvm.js uses a diffrent llvm-version. The bytecode format is incompatible I'm working on fixing this.