home .. forth .. colorforth mail list archive ..

[ColorForth] Ackerman bench mark


Dirk,

";;' is my explicit version of tail recursion. It converts the last call
compiled to a jmp. It comes from 4word color forth which you can download
from my web page along with an 800x600 modified version of Chuck's
colorForth
http://www.users.qwest.net/~loveall/ModProg.htm
In 4word, ';' explicitly compiles a 'ret'.

The decision to explicitly denote tail recursion was made in order to
simplify the compiler/interpreter and move that type of determination to the
earlier 'edit' phase.

Chuck's version of tail recursion is implicit in ';'. If the most recent
compiled code is a call, ';' will convert it to a jmp otherwise it compiles
a 'ret'.

Regards,
Terry Loveall

----- Original Message -----
From: "Dirk Heise" <dheise@xxxxxxxxxxx>
To: "ColorForth List Member" <ColorForth@xxxxxxxxxxxxxxxxxx>
Sent: Saturday, August 11, 2001 12:46 AM
Subject: [ColorForth] Ackerman bench mark


> Hi! I'm confused.
>
> A while ago i read Chuck Moores explanations about
> Color Forth on Jeffs site. I tried to put some of
> the ideas of ColorForth into OCF, my one color forth.
> To facilitate tail recursion, i implemented ";;"
> so that it compiles a jump back to the last defined
> word.
>
> Now i don't know whether this is real Color Forth -
> somebody told me that ";;" in original Color Forth
> turns the last compiled call into a jump, so that
> for tail recursion you have to write
>
> : aword .... aword ;;
>
> I checked back on Chucks and Jeffs writings, but i
> can't find the place where i found ";;" mentioned
> anywhere.
>
> Can somebody point me to the right page or tell me
> how's it done in Color Forth?
>
>
> Dirk Heise
> dheiseNOdebitelSPAMnet
>
> ------------------------
>
> To Unsubscribe from this list, send mail to Mdaemon@xxxxxxxxxxxxxxxxxx
with:
> unsubscribe ColorForth
> as the first and only line within the message body
> Problems   -   List-Admin@xxxxxxxxxxxxxxxxxx
> Main ColorForth site   -   http://www.colorforth.com
>
>

------------------------

To Unsubscribe from this list, send mail to Mdaemon@xxxxxxxxxxxxxxxxxx with:
unsubscribe ColorForth
as the first and only line within the message body
Problems   -   List-Admin@xxxxxxxxxxxxxxxxxx
Main ColorForth site   -   http://www.colorforth.com