<div dir="ltr"><div><div><div><div><div>Hi,<br>I now need to use byteSwapped32IfBigEndian: in LargeIntegersPlugin in order to support 32bits digit on hypothetical bigEndian machines.<br><br>This message will be replaced with a macro during C code generation, so it&#39;s only a problem for simulation.<br><br>My first idea was to delegate to interpreterProxy.<br>Alas, the interpreterProxy is not associated to an objectMemory (or more exactly a simulator of objectMemory)<br><br>I&#39;m not very satisfied with InterpreterProxy&gt;&gt;vmEndianness<br></div></div>It will use the image endianness instead of the simulator endianness...<br></div><div>With this, I would be able to simulate littleEndian (most VM/Images are), but I won&#39;t be able to simulate bigEndian...<br><br></div><div>Augmenting InterpreterProxy with proper knowledge of ObjectMemory simulator is above my skills...<br></div>There are 18 class refs, and it does not seems like it has been designed for such support.<br></div><div><br></div><div>Alternatively, I could implement byteSwapped32IfBigEndian: in LargeIntegersPlugin.<br></div><div>There even is a simulator inst. var. in smart plugins.<br></div><div>Alas, this simulator inst. var. is filled with a SmartSyntaxPluginSimulator which also is completely unware of objectMemory...<br></div><br></div>Any idea how I could support big-endian simulation properly?<br></div>