<html><body bgcolor="#FFFFFF"><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">On Sep 25, 2012, at 7:38 PM, Hugh Aguilar <<a href="mailto:hughaguilar96@yahoo.com">hughaguilar96@yahoo.com</a>> wrote:</span><br></div><div><br></div><div></div><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">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.</span></div>
<div style="FONT-SIZE: 16px; RIGHT: auto; COLOR: rgb(0,0,0); FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; BACKGROUND-COLOR: transparent"><span style="RIGHT: auto"></span> </div>
<div style="FONT-SIZE: 16px; RIGHT: auto; COLOR: rgb(0,0,0); FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; BACKGROUND-COLOR: transparent"><span style="RIGHT: auto">... 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).</span></div></div></div></blockquote><div><br></div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">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).</span><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Or are you talking about some kind of JIT compiler?<br><br>Stephen Bloch<div><a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a></div><div><br></div><div>who last implemented a Forth system in 1983; I presume things have changed since then!</div></span><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">
<div style="FONT-SIZE: 16px; RIGHT: auto; COLOR: rgb(0,0,0); FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; BACKGROUND-COLOR: transparent"><span style="RIGHT: auto"></span></div></div></div></blockquote></div></body></html>