G4th

XCore Project reviews, ideas, videos and proposals.
User avatar
DrFingersSchaefer
Experienced Member
Posts: 65
Joined: Fri Dec 18, 2009 1:27 pm
Location: The Interzone

G4th

Post by DrFingersSchaefer »

Version: 0.1
Status: Under development
License: GPL
Download: /files/project_builds/G4th2417120110.tar_.gz

It is years since I last looked at Forth, but a quick recap has convinced me that it may be worth while creating a Forth for the G4 processor (Hence G4th). More than likely written in Assembler.
Does anyone else have Forth experience or interested in taking part ??
This is a Project for if you have/are.
The projects objectives are to create a G4th, initially something like the ANS/ISO spec and then add in any necessary extras to make best of/expose all the native features of the processor.


"Dr Fingers Schaefer, The Lobotomy Kid"
Caesar ad sum iam forti
Brutus ad erat
Caesar sic in omnibus
Brutus sic in at
:ugeek:
User avatar
DrFingersSchaefer
Experienced Member
Posts: 65
Joined: Fri Dec 18, 2009 1:27 pm
Location: The Interzone

Post by DrFingersSchaefer »

I will be doing initial development work on an XC-1 using the XDE as an assembler.
"Dr Fingers Schaefer, The Lobotomy Kid"
Caesar ad sum iam forti
Brutus ad erat
Caesar sic in omnibus
Brutus sic in at
:ugeek:
User avatar
DrFingersSchaefer
Experienced Member
Posts: 65
Joined: Fri Dec 18, 2009 1:27 pm
Location: The Interzone

Post by DrFingersSchaefer »

Good news and thanks to Jason for helping me get the first cut of the project files uploaded. No actual real source yet just lots of template files with comments ready to add source to and the makefile based command line IDE.

Please take a look, all feedback welcome.
"Dr Fingers Schaefer, The Lobotomy Kid"
Caesar ad sum iam forti
Brutus ad erat
Caesar sic in omnibus
Brutus sic in at
:ugeek:
User avatar
jason
XCore Expert
Posts: 577
Joined: Tue Sep 08, 2009 5:15 pm

Post by jason »

Great stuff! On another note - if anyone else is having issues uploading files to projects please let me know, as I cant seem to recreate DrFingersSchaefer's upload problem my end.
User avatar
shawn
XCore Addict
Posts: 238
Joined: Thu Dec 17, 2009 5:15 am

Post by shawn »

I thought this page may interest some...

How to apply Forth
User avatar
saundby
Junior Member
Posts: 7
Joined: Sat Sep 04, 2010 9:23 pm

Post by saundby »

Rather than trying to implement FORTH as a top-down job within an outline, it usually works better to get a core interpreter running, then add the dictionary to it using FORTH itself. Then it's a small job in the native language, and you or anyone else can add additional words to that. Most of FORTH is written in FORTH.

For a blow-by-blow look at implementing a FORTH, you might want to look at Jonesforth. The hosting page is offline now, but you can find the two files at archive.org:
http://annexia.org/_file/jonesforth.s.txt
http://www.annexia.org/_file/jonesforth.f.txt

Good copies can be found at:
http://web.archive.org/web/200806202346 ... orth.s.txt
http://web.archive.org/web/200806021312 ... orth.f.txt

I implemented a FORTH on an ASIC processor back in about 1983. It took about two weeks of occasional work in my spare time. I could have had it going in one intensive weekend. I used the standard old way of using blocks with no underlying file system (the mass storage was a single raw floppy disk.)