[LLVMdev] LLVM GHC Backend: Tables Next To Code
Anton Korobeynikov
anton at korobeynikov.info
Thu Feb 16 01:45:49 PST 2012
> The table size is variable - between 2 and 6 32- or 64-bit words, where 2-3 is the common case. This means Chris's trick of adjusting the pointer by a fixed amount to point directly to the code doesn't work unless we pad the table to the worst-case size all the time, which wastes a lot of space.
Well... but you can surely emit the size of table as an argument of
the jump instruction :)
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list