(Replying to PARENT post)

Stack-orientation makes sense for interpreters, because decode is expensive in software. Hardware has different tradeoffs.
๐Ÿ‘ค082349872349872๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

The theory that stacks are better than registers for an interpreter was pretty conclusively disproven by the Lua 5.0 interpreter. See https://www.lua.org/doc/jucs05.pdf (summary: although decode is slightly more expensive per opcode, you have half as many opcodes to decode on average because you get rid of all the stack manipulation instructions)
๐Ÿ‘คMorpholemew๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0