clangor icon indicating copy to clipboard operation
clangor copied to clipboard

Clangor to executable JS issue

Open brettz9 opened this issue 11 years ago • 2 comments

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 {
                   ^```

brettz9 avatar Apr 26 '14 11:04 brettz9

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.

bobajeff avatar Sep 21 '14 19:09 bobajeff

this is because llvm.js uses a diffrent llvm-version. The bytecode format is incompatible I'm working on fixing this.

UplinkCoder avatar Mar 02 '15 09:03 UplinkCoder