Hi,
I need info on passing parameters in a function call in C for HCS12. How many parameters can be passed in a function call without comprising on performance.
The reason I'm asking this question is: In ARM, upto four words can be passed as a parameter, these paramters are saved in registers for immeidate access and hence avoids using stack and in turn increases the system performance. If more than four words are passed as parameter, they sit in stack. So accessing them takes more cycle and reduces the system performance.
Do we have anything similar to it. So, that we can improve our system performace.
More thoughts and suggestions are welcome.
Thanks & Regards,
Vignesh