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

Zariko Taba 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.

Zariko.



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
>> 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
> ______________________________**_________________
> pypy-dev mailing list
> pypy-dev at python.org
> http://mail.python.org/**mailman/listinfo/pypy-dev<http://mail.python.org/mailman/listinfo/pypy-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110922/7e69de21/attachment.html>


More information about the pypy-dev mailing list