In article
<492ff916-66e0-4000-b434-d064fc891530@[EMAIL PROTECTED]
>,
<billclem@[EMAIL PROTECTED]
> wrote:
>Hi all,
>
>I am interested in having a look at Forth but haven't been able to
>find a Forth implementation that builds on an Intel Mac running
>Leopard. I saw this thread:
>http://groups.google.com/group/comp.lang.forth/browse_frm/thread/6e4f1008a11545bf#
>
>However, it is focused on PPC Macs. I tried building both the CVS and
>the version 0.6.2 tar ball versions of GForth without success. I
>encountered a number of build errors; however, even if I was able to
>get around those build errors, it appears that I need a previous
>binary GForth on my machine in order to bootstrap the final portion of
>the build.
>
>So, a number of questions:
>
>1. Has anyone been able to get GForth built on an Intel Mac running
>Leopard? If so, could you please list what work-arounds you had to do
>to get it to build.
>2. Is there a different Forth that would be a better choice for
>someone on an Intel Mac running Leopard? I tried a lot of different
>google combinations but didn't find anything that specifically
>indicated that it had been successfully built on an Intel Mac running
>Leopard. Ideally, I don't want to have to install a macports or fink
>Forth; however, if there aren't any other options and someone has
>tried a macports/fink Forth and knows that it will work (I've
>installed and uninstalled macports and fink on my Intel Mac as I've
>had various problems with them under Leopard), then I'm willing to
>give it a try if there isn't a better alternative available.
>
>Again, I am a Forth noob, so feel free to point me to any FAQ or
>document that I may have missed.
Apparently OSX is a Unix type of system, and Intel based.
This means that ciforth/lina should be relatively easy to port.
The numbers associated with system calls probably are universal.
(At least for things like open-file, exit, write file)
You *got* to find out how to do a system call, and how to pass
parameters. In Linux this is : parameters in AX BX CX.
System call is
INT 0x80
DD <syscal nr>
This is tricky and documentation may be hard to find, but it is
not really difficult for a hacker.
Elementary routines are in assembler, for Intel. That presents
no problem.
Then you need an assembler, the one of gcc is supported.
Then you need to know how to link. The ld supplied with gcc
may work, but this can be tricky.
The first thing to try is get the lina executable,
and try it. It did work as is on Intel BSD (for the most part).
ciforth is simple: one source file, one executable (statically linked),
one library file (source), one documentation file.
You may contact me for specific questions, but I have no Mac
so I cannot try things out.
>
>Thanks,
>Bill Clementson
Groetjes Albert
--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@[EMAIL PROTECTED]
&=n http://home.hccnet.nl/a.w.m.van.der.horst


|