Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!mimsy!chris
From: chris@mimsy.UUCP (Chris Torek)
Newsgroups: comp.lang.c
Subject: Re: structure function returns -- how?
Message-ID: <4905@mimsy.UUCP>
Date: Fri, 2-Jan-87 04:20:54 EST
Article-I.D.: mimsy.4905
Posted: Fri Jan  2 04:20:54 1987
Date-Received: Fri, 2-Jan-87 18:35:30 EST
References: <131@hcx1.UUCP> <773@maynard.BSW.COM> <7403@utzoo.UUCP> <782@dg_rtp.UUCP>
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 12

In article <782@dg_rtp.UUCP> meissner@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@mimsy.umd.edu