Re: [cc65] Own parameter call stack?

From: Christian Krüger <Christian.Krueger1pace.de>
Date: 2009-09-01 15:04:47
>can't see how that would help... it would still be a software stack,

yes, but the high byte handling could be dropped...

>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).

yes, but since the high byte handling takes additional code space, inlining is not very attractive now...

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

This is not allways possible. My solution for 'leaf'-functions is to transfer data to static parameters,
but this is difficult to overhaul and error-prone (when it becomes a 'non-leaf-function')...

Regards
Chris
----------------------------------------------------------------------
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 1 15:05:05 2009

This archive was generated by hypermail 2.1.8 : 2009-09-01 15:05:07 CEST