Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.forth > #22845

Re: The most elegant Forth interpreter.

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: The most elegant Forth interpreter.
Date 2013-05-21 01:20 +0200
Organization 1&1 Internet AG
Message-ID <kneb3n$ms9$1@online.de> (permalink)
References (1 earlier) <7xd2tc5qqb.fsf@ruckus.brouhaha.com> <517fd68a$0$26888$e4fe514c@dreader37.news.xs4all.nl> <7xfvy8ar1q.fsf@ruckus.brouhaha.com> <5199147c$0$26865$e4fe514c@dreader37.news.xs4all.nl> <2013May20.130943@mips.complang.tuwien.ac.at>

Show all headers | View raw


Anton Ertl wrote:
> Or you do what Paul suggested: Write a boot loader that uses the
> existing tool and loads the Forth image to the desired place.  That
> image can be made with the traditional metacompilation approach.  I
> think iForth uses that approach.

bigForth also uses that approach.  The boot loader also provides some basic 
tools like console I/O, so that you can easily debug your image.

On the Atari ST, where I didn't have "existing tools" (just Forth, nothing 
but Forth), the boot loader was generated from Forth with the Forth 
assembler.  The TOS execution format wasn't too difficult (similar to MS-DOS 
.com, but with a simple relocation table ;-), and the boot loader (on TOS 
without the I/O stuff) was just 1k, and since it was fully PC-relative, it 
didn't need the relocation table.

On all other versions of bigForth, I used some existing tools.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Back to comp.lang.forth | Previous | NextPrevious in thread | Find similar


Thread

Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-05-19 18:05 +0000
  Re: The most elegant Forth interpreter. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-05-20 11:09 +0000
    Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-05-20 11:28 +0000
    Re: The most elegant Forth interpreter. Bernd Paysan <bernd.paysan@gmx.de> - 2013-05-21 01:20 +0200

csiph-web