Re: [cc65] assembly subroutine return value

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-07-29 22:30:47
On Thu, Jul 29, 2004 at 09:50:09AM -0700, Shawn Jefferson wrote:
> Aren't all local variables put on the stack?

No:

void foo (void)
{
    static char bar;
    ...
}

bar is a local variable but placed in static memory. The compiler will do a
similar thing if told so by using

        #pragma staticlocals (on)

The #pragma will make all local variables static

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 Thu Jul 29 22:30:52 2004

This archive was generated by hypermail 2.1.8 : 2004-07-29 22:31:01 CEST