Can a Forth-like language be implemented with just one stack?
问题 Forth has a stack and a return-stack. As far as I understand, the point of the return-stack is to store the previous values of the program counter. C programs put the previous value of program counter on the stack, and use no return stack. Does Forth only need a return-stack because it returns result(s) on the stack, and thus the previous value of the program counter could be buried? 回答1: The "Portable Assembly Language" should be close. It's a concept for a compiler for a language which is