4 ms·
> I wonder why RISC-V wasn't designed from the ground up to use separate stacks for data and subroutines. Nothing in the ISA precludes this. It's all about the
by weebull 3y ago
> I wonder why RISC-V wasn't designed from the ground up to use separate stacks for data and subroutines.
Nothing in the ISA precludes this. It's all about the software stack, and what the compilers do. All you need to do is assign another register the role of data stack pointer and define the ABI to use it.
Even the stack pointer is just a convention in RISC V