>>> 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 <cfb...@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@python.org
> http://mail.python.org/**mailman/listinfo/pypy-dev<http://mail.python.org/mailman/listinfo/pypy-dev>
>
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to