You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree on the use of ABI draft, but I'm not sure about rules for multiple returns (which the draft ABI does not address for now). For now I'm using B as a secondary return value (e.g. getline) but I may have to make them return only one argument.
Note that (seemingly) multiple returns are actually not rare in the real-world ABIs; x86-32 ABI has used EAX and EDX to return 64-bit integers, for example.
Since A, B and C are all clobberable a function can use all three to return values without technically violating the ABI. The issue would be the caller knowing that there's more than one return value, which can be indicated in the function header somehow.
No description provided.
The text was updated successfully, but these errors were encountered: