[LLVMdev] Avoiding jump (branch) instructions in a LLVM JavaScript backend
Charles Ying
charles.ying at gmail.com
Sun Jan 4 09:29:58 PST 2009
Hello llvm-dev,
I've been hacking on a JavaScript backend to LLVM, starting with the
CBackend as base.
Sadly, JavaScript does not support a "goto" style of jump instruction,
making it "tricky" to code generate a jump instruction.
What might you recommend for avoiding jump instructions? Is there a
transformation for something like this or any other ideas? The only solution
I see at the moment is to write a small VM execution loop in JavaScript, but
I was hoping that there might be other solutions.
Thanks!
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090104/d9e91a3a/attachment.html>
More information about the llvm-dev
mailing list