dual result function & ABI (using extra register), e.g. for Go
Joern Rennecke
joern.rennecke@embecosm.com
Sun Oct 31 19:10:00 GMT 2010
Quoting Basile Starynkevitch <basile@starynkevitch.net>:
> From what I know of the AMD64 ABI, (but I might be false), functions
> are only supposed to return one result in a register (rax...).
That depends on how you view the return value. complex or structure
value could be interpreted as multiple values, or vice versa.
complex, structure, or multiple return values are just different
kinds of syntactic sugar.
More information about the Gcc
mailing list