Re: [cc65] returning structs

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-08-10 15:38:03
On Mon, Aug 10, 2009 at 04:24:51AM +0200, Groepaz wrote:
> (thats pretty much almost exactly what a compiler would do too)

In compilers I've written before, temporary storage is allocated on the stack
by the calling function and a pointer to this storage is passed to the called
function. This works only with prototypes.

There are other ways to do it. Using static storage is one, but it may cause
problems.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 10 15:39:52 2009

This archive was generated by hypermail 2.1.8 : 2009-08-10 15:39:54 CEST