2006-11-11 07:59 PM
2006-11-10 05:35 AM
Compilers are more efficient if the right type of variables are used. So when a variable is defined should you used
int unsigned int or short versions of these? How would this behave if arm or thumb mode is chosen?2006-11-11 07:59 PM
For almost all architectures, the type int is the most efficient. This rule works for ARM too. Perhaps, in some cases unsigned int can be more efficient than int, but you'll have to figure it out for yourself. Look at the code the compiler generates. ARM assembly language is not that difficult to learn.
Regards, - mike