42 ms·
How so? LLVM is used to implement language features, performance-hostile ones included. asm.js is a codified way to avoid language features. You may be confusi
by Rusky 10y ago
How so? LLVM is used to implement language features, performance-hostile ones included. asm.js is a codified way to avoid language features.
You may be confusing layers here. asm.js as a compilation target is used the same way as LLVM- it is used to implement the source language's features, while simultaneously avoiding some of JS's.
- javajosh 10y agoI'm sorry, I didn't think I needed to spell it out: LLVM front-end compiles a high-level language into an intermediate representation ("IR") which is then transformed by the backend into machine code. A compiler targeting wasm occupies the same space as the LLVM front-end. Now, in a browser there is not as obvious a back-end, but it's there: it's the JSVM JIT code.
- Rusky 10y agoThat's not at all relevant.