Re: [cc65] Own parameter call stack?

From: Groepaz <>
Date: 2009-09-01 14:52:04
On Dienstag 01 September 2009, Christian Krüger wrote:
> Following up to an old discussion where I unsuccessful proposed a stack of
> max. page size (for faster access), I have a new suggestion now:
> I still find function calls (esp. in assembler) to costly.
> Would it make sense to introduce an own parameter call stack (max. page
> size), where the pushs and pops also could be inlined (macros)?

can't see how that would help... it would still be a software stack, and the 
code would still be very similar to what it is now. (and ofcourse you can 
inline stack access right now, several functions of the runtime lib do it).

better design your code in a way that you can use fastcall conventions and 
only pass one or two parameters.


Universitäten sind schöne Misthaufen, auf denen gelegentlich einmal eine edle 
Pflanze gedeiht. 
<Albert Einstein>

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 1 14:52:32 2009

This archive was generated by hypermail 2.1.8 : 2009-09-01 14:52:35 CEST