[Vm-dev] Is there a way to compile StackVM from XCode?

John M McIntosh johnmci at smalltalkconsulting.com
Fri Dec 17 18:17:11 UTC 2010


 VMMaker-dtl.109  for the image read/alloc changes

I've also  attached the iPhone changes to allow the VM to pass up objects versus integers in the primitiveGetNextEvent


On 2010-12-17, at 2:29 AM, Mariano Martinez Peck wrote:

> 
> 
> On Fri, Dec 10, 2010 at 8:57 PM, John M McIntosh <johnmci at smalltalkconsulting.com> wrote:
>  
> There are some changes that are not integrated. 
> 
> readImageFromFileHeapSizeStartingAt
> sqAllocateMemory
> sqImageFileRead
> 
> See the Squeak VMMaker source for the change sets needed to alter the header for readImageFromFileHeapSizeStartingAt
> and the new logic for sqAllocateMemory & sqImageFileRead that let's you mmap the image file in sqAllocateMemory and not assume you'll read the entire file into memory in sqImageFileRead
> 
> 
> Hi John. Where are exactly these changes you are talking about (sqAllocateMemory & sqImageFileRead )
> 
> thanks in advance,
> 
> Mariano
>  
> 
> On 2010-12-10, at 10:11 AM, Esteban Lorenzano wrote:
> 
>> Hi,
>> Yep, the iOS StackVM is on the trunk, but still not compiling out of the box (at least for me...). I'm working on that now :)
>> 
>> Cheers,
>> Esteban
>> 
>> El 10/12/2010, a las 2:49p.m., Eliot Miranda escribió:
>> 
>>> Hi Mariano,
>>> 
>>> On Fri, Dec 10, 2010 at 6:57 AM, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
>>>  
>>> Hi eliot. I am using CoreVM.xcodeproj  to compile a CogVM. I have integrated several of my own changes that I used to have in standard vm into cog...As expected, I have several errors/crash and so I thought that a first step would be to make it work with StackVM and then in Cog...
>>> 
>>> So, I want to compile and debug the StackVM using XCode. I tried using the CoreVM.xcodeproj but it seems it is prepared for CogVM. For example, it expects de files cogit.c and cogit.h  althought they are not generated when creating a StackVM. 
>>> 
>>> My question is, is there somewhere a .xcodeproj for the stackVM? or some option inside the CoreVM.xcodeproj   to say that I want to compile a StackVM ?
>>> 
>>> Take a copy of the macbuild directory, call it e.g. macstackbuild, and point the new CoreVM xcode project at ../stacksrc instead of ../src, and to compile gcc3x-interp.c instead of cogit.c and gcc3x-cointerp.c and you should be able to build a stack vm.  You can do this either by editing the CoreVM.xcodeproj/project.pbxproj file by hand (it has UUIDs for files so it can be tedious) or using Xcode itself (it has an arcane way of specifying include paths and #defines, so it can be tedious).
>>> 
>>> John McIntosh has already built a stackvm and is using it routinely on the iPhone.  I'm not sure if the build directory or xcode project is in svn, but knowing john it probably is.
>>> 
>>> HTH
>>> Eliot
>>> 
>>> Thanks in advance,
>>> 
>>> Mariano
>>> 
>>> 
>> 
> 
> --
> ===========================================================================
> John M. McIntosh <johnmci at smalltalkconsulting.com>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
> 
> 
> 
> 
> 
> 

--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================




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


More information about the Vm-dev mailing list