Closed
Description
Is the hardware stack (page 1) underused by CC65?
If I understand well, parameters passing is done through registers + software stack.
Why is the software stack used in this case? I know the hardware stack is tiny but it would be cool to have an option to use it in programs that pass just a couple of parameters beyond the 2 bytes that are usually handled by registers.
It seems to me that the hardware stack is not used a lot.
I even use the lower part of it to stack data in my programs.
Wouldn't the hardware stack bring more speed compared to the software one if used for parameter passing?