Show HN: Webassembly with only clang/LLVM 8

(github.com)

7 points | by petters 1862 days ago

1 comments

  • petters 1862 days ago
    Since llvm 8 is now released, perhaps people are interested in this.
    • billconan 1862 days ago
      Thank you.

      I'm always confused by the relationship between emscripten, binaryen, llvm.

      isn't emscripten based on llvm? and what's binaryen?

      does emscripten provide some runtime library for you to talk to javascript? does the pure llvm provide the same?

      • petters 1862 days ago
        Yes emscripten also uses llvm, at least as one of the options. It also has nice functionality like libc and libc++.

        My linked repo has a tiny malloc and I imported a printf from elsewhere.

        I added libc++. It was working, but made the binary 300kb so I removed it.