<div dir="ltr">Hi Denis,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 8:42 AM, Denis Kudriashov <span dir="ltr"><<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"> <br><div dir="ltr">Hi <div><br></div><div>I am testing serialization library and now I have problem with compiled methods.</div><div>I try to materialise 64bits method in 32bits image and otherwise. Both is not working (but in same image everything is fine).</div><div><br></div><div>I investigated following difference with "Margitude>>between:and:" as example:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>(Margitude>>between:and:) size.  "=> 64bits->46; 32bits->30"</div></div><div><div><br></div></div><div><div>(Margitude>>between:and:)  header. "same 34078723 for 64 and 32 bits"</div></div><div><div><br></div></div><div><div>(Margitude>>between:and:)  initialPC. "=> 64bits-> 33; 32bits->17"</div></div></blockquote><br><div>Is there any formula to convert these values between 64 and 32 bits?</div></div></blockquote><div><br></div><div>read CompiledCode's comment and initialPC.  The initialPC comes after n + 1 literals (the first word of a method is a header SmallInteger; after that are numLiterals literals).  So the initialPC is </div><div><br></div><div><div>initialPC</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>"Answer the program counter for the receiver's first bytecode."</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>^ (self numLiterals + 1) * Smalltalk wordSize + 1</div></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Best regards,</div><div>Denis</div></div>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>