Article View: net.lang.forth
Article #146Help with Forth stack behaviour Wanted
From: Don Taylor
Date: Fri, 02 Nov 1984 05:56
Date: Fri, 02 Nov 1984 05:56
23 lines
2012 bytes
2012 bytes
X
I am looking at the possibility of building a writable microcode machine.
One of the languages, of many, that the machine would have features to support
might be forth. The question arises as to keeping some of the top of the stack
in registers, to increase speed. This will either complicate the daylights out
of the microcode, or mean adding nontrivial register addressing hardware to the
machine that perhaps no other language would be able to use. (I was considering
keeping 8 or maybe 16 words inside the processor).
Has anyone got any ideas that would make this easier to do? In addition,
would anyone be able to supply me with some benchmark forth stack push and pop
histories? By this I mean a statement of what a particular program was meant
to do, a listing, and a long stream of 1's (say, for pushes) and 0's (say for
pops). If anyone could modify a running system, to log stack usage, it would
be very informative and helpful. If, for example, there exist a large number
of <push_operand><binary_operator> sequences, or <push_operand><unary_operand>
it would show that one or two registers would aid performance. On the other
hand, if an overwhelming percentage of the history is a large number of pushes
followed by a stream of operators, the fooling around with register overflow
is going to be more than it is worth. I am banking on the first behaviour, but
I would rather see some data first.
Thanks in advance
Don Taylor
tektronix!tekig1!dont
Technical Details
Message-ID:
<1788@tekig1.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!decvax!tektronix!tekig1!dontShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 (Tek) 9/26/83; site tekig1.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!tektronix!tekig1!dont From: dont@tekig1.UUCP (Don Taylor) Newsgroups: net.lang.forth Subject: Help with Forth stack behaviour Wanted Message-ID: <1788@tekig1.UUCP> Date: Fri, 2-Nov-84 00:56:00 EST Article-I.D.: tekig1.1788 Posted: Fri Nov 2 00:56:00 1984 Date-Received: Sat, 3-Nov-84 21:08:16 EST Organization: Tektronix, Beaverton OR Lines: 23