On 8 December 2015 at 10:22, Charles Mills <[email protected]> wrote: > Has anyone returned a long long (64 bit) value from non-XPLINK assembler to > IBM XLC? (C++, if it makes any difference.) I am referring to a return > value > as in long long MYFUNC(). I know I can pass a 64-bit integer by reference. > > It seems to me it ought to work -- register 15 has been 64 bits for what? > ten years now? -- but the P/G explicitly says "R15 Return value for integer > types (long int, short int, char) and pointer types. Otherwise set to 0." >
I don't know, but I would try declaring an external C function that returns your 64-bit int, and see what the generated code looks like on each side. (If it's internal, it may just use some private register scheme that doesn't tell you anything.) Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
