Re: [cc65] Stack usage optimization

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-09-14 08:27:17
Hi!

On Mon, Sep 13, 2010 at 05:00:11PM +0200, Jakub wrote:
> In this case one byte is wasted, while both functions could use the
> same stack space. In bigger programs it can eat up to a few hunderd
> bytes. What about computing graph of function calls and
> automatically allocate same addresses for local variables of
> function that do not call each other?

There is no lack of ideas how to improve the compiler, but there's a lack of
people implementing these ideas and a lack of spare time when it comes to
me:-) So yes, you're right, that could be done. But it probably won't - at
least not in the foreseeable future. Sorry.

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 Tue Sep 14 08:27:24 2010

This archive was generated by hypermail 2.1.8 : 2010-09-14 08:27:27 CEST