From: Christian Krüger (christian.krueger_at_pace.de)
Date: 2003-01-16 11:54:12
Hi, > Which improvements do you mean? I cannot see how declaring a > parameter as > const can improve code generation. Something like the new >... if a parameter declared as const, you shouldn't/cannot modify its value, so when reusing this value, you don't have to fetch it again... - again my sample: --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 (reuse) --8<-------------------------------------------- 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-16 11:54:34 CET