structure function returns -- how?
Chris Torek
chris at mimsy.UUCP
Fri Jan 2 19:20:54 AEST 1987
In article <782 at dg_rtp.UUCP> meissner at dg_rtp.UUCP (Michael Meissner) writes:
>If the compiler returns structures by having the caller pass a pointer to
>an area that is copied into, then for the second example [in which the
>return value is ignored], the compiler does have to create a temporary
>(preferably a stack temp...) and pass it's pointer.
Alternatively, the compiler can pass a nil pointer, and generate code to
recognise such in structure-valued functions.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP: seismo!mimsy!chris ARPA/CSNet: chris at mimsy.umd.edu
More information about the Comp.lang.c
mailing list