Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news.unit0.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail From: Lars Brinkhoff Newsgroups: comp.lang.forth Subject: Re: Would ?EXIT work in all ANS-Forth systems? Organization: nocrew References: <86inl266tx.fsf@molnjunk.nocrew.org> <0a413040-f9d7-479f-b24a-894d0985ba84@googlegroups.com> <2017May16.142647@mips.complang.tuwien.ac.at> <2017May17.184527@mips.complang.tuwien.ac.at> <362f4652-8030-4fad-867e-a942b6bdb236@googlegroups.com> <2017May26.120243@mips.complang.tuwien.ac.at> <6b9932de-bad6-4e80-97bb-b9210cd3794e@googlegroups.com> Date: Fri, 26 May 2017 20:20:09 +0200 Message-ID: <86a85zo4yu.fsf@molnjunk.nocrew.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:kzwnR84+aJdkTZMWNwSZhX9LwtA= MIME-Version: 1.0 Content-Type: text/plain Lines: 15 NNTP-Posting-Host: 178.18.91.250 X-Trace: news.sunsite.dk DXC=VLFN1`b_hLEAVjnY:6X7^ZBNgI57e>YZ9SOk1HBfORCSCccD5J_h8H;EFc5RXGEnZ\Dn` X-Complaints-To: staff@sunsite.dk Xref: csiph.com comp.lang.forth:59881 Raimond Dragomir wrote: > My current working system is kind of token threaded. The primitives > are tokenized (one byte per primitive but with some extension opcodes > if you have more than 256 primitives), and the high level words are > not tokenized, they just got called with "call" opcodes. It's like > there is a VM with a finite set of opcodes, everyone being in fact > a forth primitive. > This is VERY compact. I working on a toy stack processor with 4-bit instructions. The generated code is very very compact if you stay with the primitives. But in practice most instructions are calls. Still, it's an interesting exercise. There's a simulator written in Forth, and a hardware design in Verilog.