
76 5. Emscripten and WebGL
Now we have LLVM bytecode; what can we do with that? Well, Emscripten generates
dierent output based on the le extension of the compiler argument passed to -o. If -o is
invoked without a le extension of .js or .html as is the case here, then the output is simply
LLVM bytecode.
is bytecode is what we need to work with other libraries. Emscripten doesn’t have
support for dynamic linking ahead of time or at runtime, so for now we’ll have to stick
with static linking. at’s essentially what we’re doing here: compiling the code to an IR
that can be linked statically.
In this case, we don’t want an equivalent to an a