I'm trying to optimize my Solana program to minimize stack accesses.
How do the C/Rust compilers arrange function call arguments on an assembly level?
Specifically, what registers get used for transferring arguments, what registers are preserved, and how does a stack frame on SBFv2 typically look?
uint64_t call (
uint64_t v1,
uint64_t v2,
uint64_t v3,
uint64_t v4,
uint64_t v5,
uint64_t v6,
...
);