Hi David, John, All,<div><br></div><div>    I&#39;m working on integrating callbacks into the FFI and have the old version of callbacks working.  In integrating with Cog I&#39;ve realised some cleanliness can come from a slightly different approach, the details of which are irrelevant to my question, which is, when we&#39;re running a 32-bit image above a 32-bit VM compiled in 64-bit mode, is there any way from the image we can ask the VM if it is 64-bit or 32-bit?  Am I to understand correctly that you, John, have arranged that when we&#39;re compiling the iOS VM on a 64-bit Mac OS X, sizeof(long) = 8, and everything still works?  If not, the question is moot.  If so, how from the image can I ask whether the VM is 64-bit, e.g. by asking what sizeof(long) or sizeof(void *) is?</div>
<div><br></div><div>If there isn&#39;t a way, I propose we add vmParameterAt: 70 to answer the VM&#39;s underlying word size.  Tis is different to vmParameterAt: 40, which is the image&#39;s underlying word size.</div><div>
<br></div><div>I need the answer to this so that when a callback tries to answer e.g. an integer result it can tell whether it should use some Alien signedLongAt: N or Alien signedLongLongAt: N to answer the result, and what machine code (x86 vs x86-64) to use for the callback thunk.</div>
<div><br></div><div>best</div><div>Eliot</div>