Re: [cc65] When not to use fastcall?

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-11-20 16:43:18
--- Ullrich von Bassewitz <uz@musoftware.de> wrote:
> If you write a fastcall function in C, fastcall is
> actually a size, and not a
> speed optimization. Pushing the last parameter is
> moved into the the prologue
> of the called function, so it is done just once, not
> each time the function is
> called. The compiler will never just use the value
> in the register as is,
> because the cases in which this is possible are very
> rare.

Ok, thanks for explaining it.  So if I undetstand what
you have said: the optimizer never tries to figure out
whether or not the value in the register is used, as
is in the function, but pushes it onto the stack
automatically (in the called function, which saves
space.)

--
Shawn


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Nov 20 16:43:22 2004

This archive was generated by hypermail 2.1.8 : 2004-11-20 16:43:32 CET