Re: [cc65] fastcall

Date view Thread view Subject view

From: Stephan Lesch (slesch_at_studcs.uni-sb.de)
Date: 2003-02-27 00:51:46


On Thu, 27 Feb 2003, Ullrich von Bassewitz wrote:
> 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.

Hello Uz,

I asked because I had some problems last week with a function I called by
fastcall, which takes a pointer as an argument. Using fastcall and
compiling with optimizations, the produced code was broken (only the low-
byte of the pointer variable was loaded into the accu before calling the
routine), so I thought it might not work with C functions yet.
I'll try to reproduce the error.

Stephan

----------------------------------------------------------------------
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:52:01 CET