From: Christian Krüger (christian.krueger_at_pace.de)
Date: 2003-01-13 10:45:01
Hi (the last question for today ;-)), (BTW: Should I merge next time my questions into one mail or is splitting into several threads ok?) does declaring a 'call by value' as 'const' bring performance advantages? Example: --8<-------------------------------------------- void __fastcall__ func1(unsigned char const x); void __fastcall__ func2(unsigned char x); -- unsigned char x = 10; func1(x); // actual no need to save and restore func2(x); // accu and x --8<-------------------------------------------- What does the compiler do? I know that the assembler programmer has to take care that no modification to accu & x is allowed in 'func1()', but I would appreciate this behaviour anyhow... Regards chrisker ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-13 10:46:19 CET