return(struct) implementation

Forrest Gehrke feg at clyde.ATT.COM
Fri Mar 10 02:07:53 AEST 1989


In article <1989Mar7.163952.20063 at utzoo.uucp>, henry at utzoo.uucp (Henry Spencer) writes:
.>  [.....deletes] 
> Just about every permutation of putting it on the stack is probably
> in use in some compiler or other.  Probably the best approach, although
> it's one that requires correct declaration, is to have the caller pass
> in a pointer (as an invisible extra parameter) to where he wants the
> return value put.  Even stranger approaches have been used in some
.>  [deletes]




I don't understand how a programmer calls a function and passes
an "invisible extra parameter".  What device does he use to
accomplish this? .....Or, are you talking about the compiler
programmer?

Forrest Gehrke



More information about the Comp.lang.c mailing list