This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
[EABI] RV32 only stack support instructions #176
Labels
future idea
Something for a future version of the spec
Due to 2x
XLEN
stack alignment, RV32 eabi needs extra compressed instructions to efficiently operate on 8 byte aligned stack, otherwise non compressed instructions will have to be used when limiting stack waste is important.push/pop with 8 byte stack granularity (probably 3rd imm bit?)- most obvious alternative is to not use push/pop, or use it for 3-4 reg chunks only and handle rest by
addi
+ loads/storesC(M).ADDI8SP
- probably not necessary, push/pop with 8 byte granularity can prepare initial 8 byte allocation for an followingaddi16sp
. Non zcmpe EABI cores may need it.The text was updated successfully, but these errors were encountered: