Building VM for Mac OS X

Marcus Denker marcus at ira.uka.de
Wed Jul 18 19:00:49 UTC 2001


On Wed, Jul 18, 2001 at 10:30:37AM -0600, Eric Scharff wrote:
> On Wed, 18 Jul 2001, Marcus Denker wrote:
> 
> > The Carbon VM is build using CW (commercial), I think. But it should
> > be possible to compiler the Carbon sources using gcc. It´s allready possible
> > to build squeak with MPW/GCC on MacOS9, so it should be simple, only new
> > makefiles need to be written.
> 
> I've used CodeWarrior to build VM for OS9, but OS X has a native binary
> format that makes debugging easier.
>
Do you know if it is now possible to build OS9 binaries with the OSX gcc?
That would be a great thing for J3: it needs to be compiled with gcc,
but the MPW/GCC for OS9 is old and buggy...

(The MPW/GCC sourcetree is available at 
http://irafs1.ira.uka.de/~marcus/j3/3.0Alpha7MTJ3.11j-SRC.sit.bin

but it´s somewhat out of date (based on 3.0Alpha7...). It contains 
Makefiles for building a squeak-vm without j3 with gcc on MacOS9.)
 
> 
> When building the Unix VM, I noticed a 'gnuify' script which worried me.
> I don't know how to run it by hand if necessary.
>
That´s simple: It´s an awk script:

marcus at wombat:~ $ ./gnuify interp.c >ginterp.c

that simple. This can be done automatically from the makefiles
(look at the unix-makefiles or the MPW-Makefile (strange syntax). 

The script uses gawk. OSX as a BSD-Unix doesn´t have this, so you
need to get gawk. Or use "awk -f gnuify", but it might be only compatible
with GNU-awk.
 
    Marcus




More information about the Squeak-dev mailing list