[pypy-dev] Number of constants in a jitted rpython interpreter

Carl Friedrich Bolz cfbolz at gmx.de
Thu Sep 22 15:11:56 CEST 2011

On 09/22/2011 03:01 PM, Zariko Taba wrote:
> Hi pypy !
> I'm still exploring rpython and I face a problem when adding a jit to an
> interpreter.
> In Assembler class (pypy.jit.codewriter.assembler), in emit_const
> method, it seems to be assumed that there is no more than 256 constants.
> (constant seems to be accessed in a array with a 1 byte index).
> If I try to translate an interpreter with more than 256 constant objects
> (like string ?), I get this error :

There is a limit of 256 constants *per function*. If you need more, 
maybe your functions are too complex :-).

Carl Friedrich

More information about the pypy-dev mailing list