[LLVMdev] LLVM GHC Backend: Tables Next To Code

Anton Korobeynikov anton at korobeynikov.info
Wed Feb 15 23:47:45 PST 2012

> Since the jmp is a fixed 2 bytes (0xEB, tablesize), all references to the table can still be done with trivial pc/RIP-relative addressing within the closure, and you just need one pointer for both the table and the closure data.
Only if tablesize fits in 127 bytes. Otherwise it will use 0xE9-based
encoding which is larger.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list