Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If I do a FUNCTION or SUB When is good to make it fastcall ?
#1
Hi

Well... this is the question Smile

If I do a FUNCTION or SUB When is good to make it fastcall ?

how can i know if ist's better as a fastcall or not?

How can i know that?

Thanks
Reply
#2
Usually when the function body is in ASM, or when you pass 0 parameters to it.
Fastcall functions are slighlty faster, but the 1st parameter comes into register and ZX Basic currently does nothing with it.
Also the Stack must be rearranged by the user on return if more than 1 parameter is used (the compiler will issue a Warning)
Reply
#3
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)