Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
76 5. Emscripten and WebGL
Now we have LLVM bytecode; what can we do with that? Well, Emscripten generates
dierent 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079