Earlier quoted context omitted.
This is amazing to me that you can do this in Zig code directly as opposed to messing with the compiler.
To be fair, this can be done in GNU C as well. Like the Zig implementation, you'd still have to use inline assembly.
I see, so you're saying that GCC can be coaxed into gathering only the relevant registers to stack and unstack not blindly do all of them?