4 ms·
Forth is really a kind of assembly language for a virtual machine, and not really a higher level language. It looks higher level because it doesn't have registe
by kazinator 8y ago
Forth is really a kind of assembly language for a virtual machine, and not really a higher level language. It looks higher level because it doesn't have registers.
Register machine languages are "catenative" also. We can take a "mov eax, ebx" and catenate that with "move ecx, $foo" in any order we want. We are constrained, though, because different sections of code use different input and output registers (or combinations of input and output registers and stack locations and such). Forth makes those conventions uniform, and that leads to some degrees of freedom which give it a higher level flavor.
The thing to do is to make some higher level language that uses Forth as a VM; then you have understandable code.