Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.ti » FORTH returns on a TI 99/4A
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
FORTH returns on a TI 99/4A [message #76477] Wed, 29 May 2013 23:58 Go to previous message
gjphw is currently offline  gjphw
Messages: 11
Registered: February 2013
Karma:
Junior Member
Message-ID: <233@iham1.UUCP>
Date: Wed, 10-Oct-84 19:23:27 EDT
Article-I.D.: iham1.233
Posted: Wed Oct 10 19:23:27 1984
Date-Received: Fri, 12-Oct-84 08:04:01 EDT
Organization: AT&T Bell Labs, Naperville, IL
Lines: 35



   An article appeared in a recent issue of BYTE presenting a case for changing
 the way FORTH handles its threading.  Ordinarily, FORTH's resident words are
 written in assembler and the user defined words are threaded using these
 resident words and other user defined words.  At the end of any particular
 word, a return pointer to the preceding word is stored.  The article said that
 this technique was used to keep FORTH small.

   A faster way to handle returns from any particular word would be to use the
 return procedure built into the microprocessor.  Rather than going through the
 bother of storing the pointers, the author argued that treating every word as
 a subroutine would provide faster execution.  He then gave some comparisons
 between the usual pointer returns and the subroutine/macro routines that he
 advocated.

   I have the opportunity to obtain the assembly source code for the FORTH that
 has been implemented by Texas Instruments on their TI 99/4A.  If there is
 indeed a significant performance improvement to be realized, a nice project
 for me might involve modifying the returns according to this guy's proposal.
 My question concerns the value of the article's argument.

   Is there a significant performance improvement to be had by treating FORTH
 words as subroutines?  Has anyone in netland considered this possibility?  Are
 there presently some implementations of FORTH that already treat its words as
 subroutines (and uses the subroutine return native to the micro)?  Replies
 will be read if either posted to this newsgroup or sent to me directly.
 Thank you.

-- 

                                    Patrick Wyant
                                    AT&T Bell Laboratories (Naperville, IL)
                                    *!iham1!gjphw
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: C in TMS 9900
Next Topic: faster forth
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Apr 20 08:57:52 EDT 2024

Total time taken to generate the page: 0.00286 seconds