Re: [cc65] fastcall

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-02-27 00:07:59


On Thu, Feb 27, 2003 at 12:04:42AM +0100, Stephan Lesch wrote:
> Speaking of which. is fastcall still limited to assembly routines, or is
> it possible to use it with C functions?

You can use __fastcall__ also with C functions. However, it's not really a
speed improvement in this case, because the first thing such a C function will
do is to push the rightmost parameter onto the stack:-) Contrary to it's name
this will give not faster but shorter code when the function is called more
than once.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-02-27 00:08:15 CET