Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 05:27
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
FORTH.
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
vtpup


Joined: 15 Oct 2008
Posts: 1178
Location: Republic of Vermont

PostPosted: Wed 16 May 2012, 11:59    Post_subject: gFORTH pet  

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:
 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
gforth-0.7.0-i486.pet
Description  Gforth compiled in Racy53
pet

 Download 
Filename  gforth-0.7.0-i486.pet 
Filesize  866.81 KB 
Downloaded  120 Time(s) 

_________________
Acer Aspire 5349-2635 laptop dual proc, 4gb ram, frugal Racy 5.5.
1999 Thinkpad 600e hacked Pent 3, overclocked 800 mHz, 490 kb running Lupu 528

Acer Iconia A1-830 x86 tablet -- Puppy some day?
Back to top
View user's profile Send_private_message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 16 May 2012, 12:59    Post_subject:  

Is this a good link to GForth?
http://www.public.iastate.edu/~forth/gforth_toc.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
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0413s ][ Queries: 12 (0.0031s) ][ GZIP on ]