<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 15, 2014 at 10:04 AM, Douglas McPherson <span dir="ltr">&lt;<a href="mailto:djm1329@san.rr.com" target="_blank">djm1329@san.rr.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div style="word-wrap:break-word"><div>Yes, I tried with -O0, but to no avail. I&#39;m still unable to open any image. I&#39;m sure it&#39;s one of these compiler flags that I&#39;m missing or have got wrong, but I&#39;m afraid I don&#39;t understand what many of them do :(</div>
<div><br></div><div>Any suggestions on how to proceed would be most welcome!</div></div></blockquote><div><br></div><div>gdb.  Plus -sendtrace (I think) can print out messages (slow) that can help.  In gdb you can run and then interrupt to see where it is stuck.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Thanks,</div><div>Doug</div><div>  </div><div><br></div>
<div><div>On May 14, 2014, at 10:15 , John McIntosh wrote:</div><br><blockquote type="cite"><div dir="ltr">Did you try it with -O0 <div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 14, 2014 at 9:16 AM, Douglas McPherson <span dir="ltr">&lt;<a href="mailto:djm1329@san.rr.com" target="_blank">djm1329@san.rr.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div style="word-wrap:break-word"><div>Here is the crash log hoping that someone can spot something obvious :)</div>

<div><br></div><div></div></div><br><div style="word-wrap:break-word"><div></div><br><div><div>On May 14, 2014, at 08:42 , Douglas McPherson wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word"><div>
<br>
</div><div><div>On May 12, 2014, at 22:04 , Eliot Miranda wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi Doug,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 9:27 PM, Douglas McPherson <span dir="ltr">&lt;<a href="mailto:djm1329@san.rr.com" target="_blank">djm1329@san.rr.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br><div style="word-wrap:break-word">

<div>Thank you both John and Eliot,</div><div><br></div><div>Yes that was the problem ... I changed the architecture setting in the CoreVM project, but I (also?) needed to make the change for the Squeak target. </div>
<div><br></div><div>Now that I&#39;m building for the right architecture, there are several compile errors ... mostly atomic operation macros not yet defined for PPC.  Also an error due to no high res clock defined :(</div>


</div></blockquote><div><br></div><div>Never mind.  Just do without.  I know that requires some trickery, but...</div><div><br></div></div></div></div></blockquote><div><br></div><div>Ok, after some mostly blind hacking (especially with regard to choosing compile flags) I managed to compile. Of course it won&#39;t open an image though :) I tried both a 4.5 image and a 4.1 image.  Does anyone have have experience with StackVM on PPC?</div>

<div><br></div><div><br></div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div style="word-wrap:break-word"><div><br></div><div>My actual goal for this effort is to try to fill in the pieces of the ThreadedPPCBEFFIPlugin, mostly as an academic exercise.  </div></div></blockquote><div><br></div>


<div><br></div><div>That&#39;s fab.  I want to dangle a PowerPC JIT as an academic exercise too ;-).</div><div><br></div></div></div></div></blockquote><div><br></div><div>Yes, that would be a cool longer-term exercise! </div>

<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>But we need to talk over the PPC, because there&#39;s a gotcher with it.  basically the register parameters are shadowed on the stack, so while marshalling (while computing the values to pass) one can&#39;t &quot;just call&quot; a marshalling routine (say to convert a LargeInteger to a parameter), because doing so would trash the stack.  Instead one has to alloca additional space for marshalling calls and then throw it away by cutting back the stack just before the actual call.  What I&#39;ve just said probably makes as much sense as Mary Poppins lyrics so we&#39;ll probably need to talk it through.</div>


<div><br></div><div> </div></div></div></div></blockquote><div><br></div><div>Yes, I think I saw #registerArgsSlop used for this purpose, right?</div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">

<div><br></div><div>Doug</div><div><br></div><br><div><div>
On May 12, 2014, at 11:01 , John McIntosh wrote:</div><br><blockquote type="cite"><div dir="ltr">It might be defaulting to build intel architecture. Check the build parms to see if it is building a fat binary of power pc and intel instructions.  You can use the os-x cmd lipo to confirm you have both architectures in the build. </div>



<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 10:16 AM, Douglas McPherson <span dir="ltr">&lt;<a href="mailto:djm1329@san.rr.com" target="_blank">djm1329@san.rr.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Yesterday I spent several hours resurrecting an old PowerMac G4 running OS X 10.5 (Leopard). I managed to find Xcode 3.1.4 download on Apple&#39;s developer site and install it. I want to build a Cog/Stack VM for this machine. I opened the xcode project in Cog/stackbuild/macbuild/CoreVM.xcodeproj and built with no problems. However the VM won&#39;t start instead popping up &quot;You can&#39;t open the application &quot;Squeak&quot; because it is not supported on this architecture.&quot; This is the same message I get if I try to open the Squeak-4.5-All-in-One on the G4 - which in that case makes sense since it&#39;s a full Cog VM built for IA32 and of course doesn&#39;t run on PPC.<br>




<br>
So my questions are:<br>
1. Should I be able to run Cog/Stack on PPC?<br>
2. How should I build it? Clearly I&#39;m doing something wrong.<br>
<br>
Thanks,<br>
Doug<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>===========================================================================<br>John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;<br>



Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882<br>===========================================================================<br><br>
</div>
</blockquote></div><br></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>
</blockquote></div><br></div></blockquote></div><br></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>===========================================================================<br>John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;<br>

Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882<br>===========================================================================<br><br>
</div>
</blockquote></div><br></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>