Let’s say I want to do baremetal programming on an ARM cpu, using a stack machine approach with Forth. Could I use the registers of the cpu as the top of the stack, disregarding their actual conventional use in a register machine?
I want to mimick what a dual stack machine does, using hardware addresses as the stack. The hardware I am looking at to do this is probably a Raspberry pi zero or something similar with better documentation