> On 18 Aug 2017, at 11:34, Patrick Scherer <patrick.sche...@hrworks.de> wrote:
> 
> Hello everyone,
> 
> I'm trying to move some of our code from VA Smalltalk over to Pharo using a 
> self-made importer and have encountered the following issue I need help with:
> 
> A few of our methods are very large in size. For example, we have a method 
> that creates a huge Dictionary with specific keys and values on startup and 
> stores it in a class variable for immediate access. 
> This method works fine in VA Smalltalk, but if I attempt to compile the same 
> source code in Pharo (programmatically or via copy paste using the interface) 
> I'm getting 'Error: genPushLiteral: index index 256 is out of range 0 to 255' 
> in OpalEncoderForV3PlusClosures. I'm getting the same error for some other 
> methods.
> 
> If I understand this correctly, the method simply exceeds the maximum number 
> of literals, but it works fine in VA Smalltalk. Is there a way to increase 
> this limit or bypass this issue without having to rework our implementation?
> 
Hello,

Can you try to change (in the preferences) the Bytecode Backend to “SistaV1” 
(this is the new byte code set that will be the default at some point in the 
future).

        Marcus

Reply via email to