@foone PIC microcontrollers use a ring buffer as a stack. Very easy to do that there