DEREX Pascal

S12XDP512 more efficient between char and int

Discussion created by DEREX Pascal on Mar 16, 2007
Latest reply on Mar 19, 2007 by DEREX Pascal
Hello,
 
I use CW 4.5 for s12x
 
if i declare a function like it
 
void f(char i, char j)
{
 return(i+j)
}
 
and the same function like that
 
void f(int i, int j)
{
 return(i+j)
}
 
What is the best déclaration for the micro (for speed)? I don't really need 16 bit variables but i am translating old functions to a new application for 9s12x and a lot of functions are declared with int for char really needed. If i change all my declarations functions, will my program will work faster?
 
Regards 

Outcomes