[Vm-dev] Cog/Stack VM on PowerPC?

Douglas McPherson djm1329 at san.rr.com
Wed May 14 16:16:06 UTC 2014


Here is the crash log hoping that someone can spot something obvious :)


On May 14, 2014, at 08:42 , Douglas McPherson wrote:

> 
> On May 12, 2014, at 22:04 , Eliot Miranda wrote:
> 
>> Hi Doug,
>> 
>> 
>> On Mon, May 12, 2014 at 9:27 PM, Douglas McPherson <djm1329 at san.rr.com> wrote:
>>  
>> Thank you both John and Eliot,
>> 
>> 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. 
>> 
>> Now that I'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 :(
>> 
>> Never mind.  Just do without.  I know that requires some trickery, but...
>> 
> 
> Ok, after some mostly blind hacking (especially with regard to choosing compile flags) I managed to compile. Of course it won'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?
> 
> 
>>  
>> 
>> My actual goal for this effort is to try to fill in the pieces of the ThreadedPPCBEFFIPlugin, mostly as an academic exercise.  
>> 
>> 
>> That's fab.  I want to dangle a PowerPC JIT as an academic exercise too ;-).
>> 
> 
> Yes, that would be a cool longer-term exercise! 
> 
>> But we need to talk over the PPC, because there'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't "just call" 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've just said probably makes as much sense as Mary Poppins lyrics so we'll probably need to talk it through.
>> 
>>  
> 
> Yes, I think I saw #registerArgsSlop used for this purpose, right?
> 
>> 
>> Doug
>> 
>> 
>> On May 12, 2014, at 11:01 , John McIntosh wrote:
>> 
>>> 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. 
>>> 
>>> 
>>> On Mon, May 12, 2014 at 10:16 AM, Douglas McPherson <djm1329 at san.rr.com> wrote:
>>> 
>>> 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'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't start instead popping up "You can't open the application "Squeak" because it is not supported on this architecture." 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's a full Cog VM built for IA32 and of course doesn't run on PPC.
>>> 
>>> So my questions are:
>>> 1. Should I be able to run Cog/Stack on PPC?
>>> 2. How should I build it? Clearly I'm doing something wrong.
>>> 
>>> Thanks,
>>> Doug
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> ===========================================================================
>>> John M. McIntosh <johnmci at smalltalkconsulting.com>
>>> Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882
>>> ===========================================================================
>>> 
>> 
>> 
>> 
>> 
>> 
>> -- 
>> best,
>> Eliot
> 

-------------- next part --------------
Skipped content of type multipart/mixed


More information about the Vm-dev mailing list