FORTH.

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

gFORTH pet

#16 Post by vtpup »

I just compiled gFORTH on Racy53 and am attaching a .pet here.

To run after installation, open a terminal window and type "gforth".

To leave type "bye"

To test type:

Code: Select all

 5 5 + .
That should print a 10 on the terminal.

It puts the two numbers 5 and 5 on the stack, performs an addition, and then pops the result off and prints it on-screen.

To learn FIRTH go here and read this online book (Starting FORTH by Leo Brady):

http://www.forth.com/starting-forth/sf1/sf1.html
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#17 Post by nooby »

Is this a good link to GForth?
http://www.public.iastate.edu/~forth/gf ... .html#TOC5

I am so bad at reading text so I get unsure of
if GForth is just an interpreter or if it produce standalone
programs that are executable? Or does it have to have GForth
running as an Interpreter all the time.

I fail to remember name but around 1990 or so there where
a Forth for Dos that compiled DOS executable standalone programs.

Very handy using that one. Big difference in how slow
and big an interpreter program is and running the free standing executables.

I get curious on what the name of that Forth could have been.
Existed on CD from a big known American University. UCLA?
or similar
I use Google Search on Puppy Forum
not an ideal solution though

Post Reply