[pypy-dev] Number of constants in a jitted rpython interpreter
zariko.taba at gmail.com
Thu Sep 22 15:37:40 CEST 2011
>>> There is a limit of 256 constants *per function*. If you need more,
maybe your functions are too complex :-).
Great ! Thanks for the advice !
I was generating a function from meta data, so I didn't care about size of
the generated code. When splitting the function, error disappears. :)
Thanks for your help.
On Thu, Sep 22, 2011 at 3:11 PM, Carl Friedrich Bolz <cfbolz at gmx.de> wrote:
> 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
>> 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
> pypy-dev mailing list
> pypy-dev at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pypy-dev