&gt;&gt;&gt; There is a limit of 256 constants *per function*. If you need more, maybe your functions are too complex :-).<br><br>Great ! Thanks for the advice !<br>I was generating a function from meta data, so I didn&#39;t care about size of the generated code. When splitting the function, error disappears. :) <br>
<br>Thanks for your help.<br><br>Zariko.<br><br><br><br><div class="gmail_quote">On Thu, Sep 22, 2011 at 3:11 PM, Carl Friedrich Bolz <span dir="ltr">&lt;<a href="mailto:cfbolz@gmx.de">cfbolz@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 09/22/2011 03:01 PM, Zariko Taba wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi pypy !<br>
<br>
I&#39;m still exploring rpython and I face a problem when adding a jit to an<br>
interpreter.<br>
In Assembler class (pypy.jit.codewriter.<u></u>assembler), in emit_const<br>
method, it seems to be assumed that there is no more than 256 constants.<br>
(constant seems to be accessed in a array with a 1 byte index).<br>
<br>
If I try to translate an interpreter with more than 256 constant objects<br>
(like string ?), I get this error :<br>
</blockquote>
<br></div>
There is a limit of 256 constants *per function*. If you need more, maybe your functions are too complex :-).<br>
<br>
Carl Friedrich<br>
______________________________<u></u>_________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org" target="_blank">pypy-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/pypy-dev</a><br>
</blockquote></div><br>