[racket] assembly language
On Sep 25, 2012, at 7:38 PM, Hugh Aguilar <hughaguilar96 at yahoo.com> wrote:
> I am writing a Forth system. I want it to be interactive in the usual Forth way. This means assembling a function at run-time and immediately being able to run the assembled function.
>
> ... I'm much better off if I can just assemble the functions at run-time for the Forth system (which is compile-time for the user's Forth program).
The traditional way to implement a Forth compiler, IIUC, isn't to generate executable machine code at all, but rather to generate a sequence of word-references that are interpreted as procedure calls by the Forth interpreter (which is in native executable code, but written in advance).
Or are you talking about some kind of JIT compiler?
Stephen Bloch
sbloch at adelphi.edu
who last implemented a Forth system in 1983; I presume things have changed since then!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120925/4ce1e2a8/attachment.html>