Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Gforth-EC, the underappreciated embedded Forth
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Kuehling  
View profile  
 More options Feb 6, 5:07 pm
Newsgroups: comp.lang.forth
From: David Kuehling <dvdkh...@gmx.de>
Date: Mon, 06 Feb 2012 23:07:36 +0100
Local: Mon, Feb 6 2012 5:07 pm
Subject: Gforth-EC, the underappreciated embedded Forth
Hi,

I've been having a look at Gforth-EC lately, that's the embedded
cross-compiled Forth support that has been included with Gforth all the
time, but as it's well hidden and pretty undocumented, I guess most
people wouldn't have noticed it.

Now it turns out it only takes a few commands to generate a usable 8086
gforth-ec executable, running in dosbox (i.e. emulated under Linux):

From the Gforth source directory, run:

./build-ec 8086
mv kernl-8086.fi gforthec.com  # need to rename for dosbox to execute it
dosbox gforthec.com

And voila, it prints the standard Gforth welcome message.  Some testing:

here .  14334 ok
unused u.  47162 ok
words
[..]
dup lit branch >r r> c! c@ (emit) (key) lastkey and xor + rp!
rp@ sp! sp@ ! @ ?branch execute ;s  ok    

More Forth-code to cross-compile can be added in arch/8086/prims.fs.  

Now 8086 code isn't really very interesting to most modern computer
users, but 8086 isn't the only architecture supported by gforth-ec.  I
can successfully run build-ec for 8086, r8c and misc.  Other targets
that seem to have been supported at some time are m68k, shboom, 6502,
c165 and 4stack, but with current Gforth-CVS compilation fails for
those.

Adding support for new target is not too difficult.  Currently I'm
trying to make it work for the LatticeMico32 CPU (the Milkymist SoC).

cheers,

David
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Albert van der Horst  
View profile  
 More options Feb 7, 11:07 am
Newsgroups: comp.lang.forth
From: Albert van der Horst <alb...@spenarnc.xs4all.nl>
Date: 07 Feb 2012 16:07:47 GMT
Local: Tues, Feb 7 2012 11:07 am
Subject: Re: Gforth-EC, the underappreciated embedded Forth
In article <87fwen62fr....@snail.Pool>,
David Kuehling  <dvdkh...@gmx.de> wrote:

>Hi,

>I've been having a look at Gforth-EC lately, that's the embedded
>cross-compiled Forth support that has been included with Gforth all the
>time, but as it's well hidden and pretty undocumented, I guess most
>people wouldn't have noticed it.

>Now it turns out it only takes a few commands to generate a usable 8086
>gforth-ec executable, running in dosbox (i.e. emulated under Linux):

>From the Gforth source directory, run:

>./build-ec 8086
>mv kernl-8086.fi gforthec.com  # need to rename for dosbox to execute it
>dosbox gforthec.com

Slightly surprising. I expect a Forth only to run on a dosbox if
it does INT 21 io.  I expect an embedded Forth to work independant
from MSDOS INT 21 stuff.

>And voila, it prints the standard Gforth welcome message.  Some testing:

>here .  14334 ok
>unused u.  47162 ok
>words
>[..]

<SNIP>
>David

Groetjes Albert

--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BruceMcF  
View profile  
 More options Feb 7, 10:51 am
Newsgroups: comp.lang.forth
From: BruceMcF <agil...@netscape.net>
Date: Tue, 7 Feb 2012 07:51:49 -0800 (PST)
Local: Tues, Feb 7 2012 10:51 am
Subject: Re: Gforth-EC, the underappreciated embedded Forth
On Feb 7, 11:07 am, Albert van der Horst <alb...@spenarnc.xs4all.nl>
wrote:

> Slightly surprising. I expect a Forth only to run on a dosbox if
> it does INT 21 io.  I expect an embedded Forth to work independant
> from MSDOS INT 21 stuff.

But there is no single standard way for an embedded '86 system to do
IO. Embedded msdos compatible boards are certainly not unknown, and a
dosbox is convenient as a sandbox for testing on a Linux system, so
its not surprising that an embedded '86 Forth would have msdos IO as
the shipping system. Certainly whoever is using it on a board other
than an embedded msdos board would replace that with IO appropriate to
their board.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Kuehling  
View profile  
 More options Feb 7, 10:55 am
Newsgroups: comp.lang.forth
From: David Kuehling <dvdkh...@gmx.de>
Date: Tue, 07 Feb 2012 16:55:56 +0100
Local: Tues, Feb 7 2012 10:55 am
Subject: Re: Gforth-EC, the underappreciated embedded Forth

It does use int 21 io, see definition of (emit) &friends in [1].  The
nice thing is that this is really completely compiled&assembled from
forth.  No binutils, GCC etc. involved.

cheers,

David

[1] http://www.complang.tuwien.ac.at/cvsweb/cgi-bin/cvsweb/gforth/arch/80...
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Coos Haak  
View profile  
 More options Feb 7, 7:30 pm
Newsgroups: comp.lang.forth
From: Coos Haak <chfo...@hccnet.nl>
Date: Wed, 8 Feb 2012 01:30:08 +0100
Local: Tues, Feb 7 2012 7:30 pm
Subject: Re: Gforth-EC, the underappreciated embedded Forth
Op Mon, 06 Feb 2012 23:07:36 +0100 schreef David Kuehling:

What version of Gforth are you using, I get:

coos@donald:~/work/forth/gforth-0.7.0$ ./build-ec 8086

in file included from *OS command line*:-1
in file included from kernel/main.fs:43
cross.fs:1156: No such file or directory
[IF]    >>>included<<< hex
Backtrace:
$9C5D6C throw
cp: kan status van ˇkernl-8086.fi-˘ niet opvragen: Bestand of map bestaat
niet

--
Coos

CHForth, 16 bit DOS applications
http://home.hccnet.nl/j.j.haak/forth.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Kuehling  
View profile  
 More options Feb 8, 3:52 am
Newsgroups: comp.lang.forth
From: David Kuehling <dvdkh...@gmx.de>
Date: Wed, 08 Feb 2012 09:52:16 +0100
Local: Wed, Feb 8 2012 3:52 am
Subject: Re: Gforth-EC, the underappreciated embedded Forth

Ah, this could be caused by missing installation step.  Try 'sudo make
install' first.

BTW I'm using the latest GForth from CVS.  Try

  cvs -d :pserver:anonym...@c1.complang.tuwien.ac.at:/nfs/unsafe/cvs-repository/src-master co gforth
  cd gforth
  ./BUILD-FROM-SCRATCH
  sudo make install
  ./build-ec 8086

cheers,

David
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Kuehling  
View profile  
 More options Feb 9, 7:45 pm
Newsgroups: comp.lang.forth
From: David Kuehling <dvdkh...@gmx.de>
Date: Fri, 10 Feb 2012 01:45:31 +0100
Local: Thurs, Feb 9 2012 7:45 pm
Subject: Re: Gforth-EC, the underappreciated embedded Forth

Right, the arch/8086 directory is not included in Gforth's distribution
tarballs.  Here's a current snapshot tarball that has it:

http://downloads.qi-hardware.com/people/dvdkhlng/gforth-0.7.9-2012021...

(this also fixes building of the c165 gforth-ec target, btw)

cheers,

David
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »