Re: [cc65] Stack usage optimization

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2010-09-13 18:29:34
On Monday 13 September 2010, 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?

Is this really a safe optimization?  What about threads?  Or when 
functions are called within an interrupt handler?

Ciao,
	Marc 'BlackJack' Rintsch
-- 
“When humans speak for God in terms of rejection or condemnation,
 we may rest assured that dangerously narrow minds are at work.”
                                     -- Rev. Webster "Kit" Howell

----------------------------------------------------------------------
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 Sep 13 18:17:57 2010

This archive was generated by hypermail 2.1.8 : 2010-09-13 18:18:00 CEST