community
directory
books
authors
images
encyclopedia

Email:
Password:
Register

Knowledgerush Search

 

Google
  Web knowledgerush


Search for images of Forth virtual machine


Message boards   Post comment

Forth virtual machine

Often, Forth implementations have a simple virtual machine at heart, consisting of three primitives. Those are:

  • nest, also called docol
  • unnest, or semi_s (;s)
  • next

three registers are used to implement the virtual machine, another one exists for passing data between words, which use the vm. These are:

different models exist to implement the forth vm, the one given here implements indirect threaded code, or ITC next: (ip)+ -> w ; jmp (w)+ nest: ip -> -(rp) ; w -> ip ; next unnest: (rp)+ -> ip ; next

other models are:

  • DTC (Direct Threaded Code)
  • STC (Subroutine Threaded Code)
  • TTC (Token Threaded Code)

less often used are

  • return threading
  • string threading
  • call threading

Referenced By

Virtual machine

 

Compose Your Message

Your Email Address or Pen Name (optional):
Subject:
Your Message:
 

 

 

 

 

 

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Forth virtual machine".

 

Contact UsPrivacy Statement & Terms of Use

 
Copyright © 1999-2003 Knowledgerush.com. All rights reserved.