Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #22698

Re: The most elegant Forth interpreter.

Newsgroups comp.lang.forth
Date 2013-05-16 18:24 -0700
References (3 earlier) <7x61z6dt5d.fsf@ruckus.brouhaha.com> <517e4c3e$0$6364$e4fe514c@dreader35.news.xs4all.nl> <7xd2tdpczx.fsf@ruckus.brouhaha.com> <klmom1$ln5$1@speranza.aioe.org> <r5-dncwRSu0GZ-PMnZ2dnUVZ_tOdnZ2d@supernews.com>
Message-ID <f5b9ffec-71bb-4ef9-ad67-9e18e9803fa8@googlegroups.com> (permalink)
Subject Re: The most elegant Forth interpreter.
From dirk.bruehl@usa.net

Show all headers | View raw


On Monday, April 29, 2013 6:56:27 PM UTC-4, Andrew Haley wrote:
> I once ran out of code space in a microcontroller application. 
> So, I changed from direct-threaded code to byte-token threading. 
> It took a little while to do and the resulting code was
> a bit slower, but it fitted in the ROM. 
> Doing this kind of thing in Forth is fairly easy, and well
> within the reach of application programmers: redefine the core
> of the interpreter, redefine a few compiler words, and you're done.

Andrew, I started using Forth for microprocessor applications in 1984, and using Forth ever since, but following your description I am not an application programmer.

Is there any tutorial showing how changing from direct-threaded code to byte-token threading works? 

I have to admit that for all my applications I always used ready made Forth, starting with RSC-Forth and using RSC-Forth until 65xx micros haven't been available anymore (the last one was Mitsubishi's M38049, to which I ported RSC-Forth), now using 4E4th for micros, using UR/Forth, FPC and Win32Forth for PCs.

Now I am looking for an opportunity to change 4E4th to byte-token threading.  
I never wrote my own Forth.

Would be glad if you could help.

Thanks a lot in advance!

DB

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


Thread

Re: The most elegant Forth interpreter. dirk.bruehl@usa.net - 2013-05-16 18:24 -0700
  Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-17 19:02 -0700
    Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-17 21:33 -0700
      Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-17 22:32 -0700
        Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-18 07:50 -0500
          Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-18 10:56 -0700
            Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-18 13:38 -0500
              Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-18 12:49 -0700
                Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-19 04:12 -0500
                Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-19 13:58 -0700
                Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-20 04:01 -0500
        Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-18 10:47 -0700
          Re: The most elegant Forth interpreter. Bernd Paysan <bernd.paysan@gmx.de> - 2013-05-19 01:23 +0200
        Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-18 18:44 -0700
          Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-19 20:41 -0700
            Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-19 23:25 -0700
      Re: The most elegant Forth interpreter. "Bill Leary" <Bill_Leary@msn.com> - 2013-05-18 06:15 -0400
        Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-18 10:34 -0700
  Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-18 05:30 -0500

csiph-web