Odin Just Broke Its ABI (On Purpose)
9 points by heavyrain266
9 points by heavyrain266
Non-video source: https://github.com/odin-lang/Odin/pull/8489
In short:
- Keep context in a fixed register
- Return more in registers, including float arrays and matrices in vector registers
- Write results that come back through memory straight into the variables they declare
- Pass two-word values as two arguments
- Pass parameters over 16 bytes by value, copy them only when something could change them during the call, and mark them noalias
- Read large values where they are evaluated, as small ones already were