i have limited RAM in my microController.(using arm gcc) i should write my code as efficient as possible. consider function blew :
int foo(uint32_t a , float b)
{
.....
return 0;
}
so I have two arguments a
and b
. now if I change the arguments to *a
and *b
is the function takes less ram than the first function during execution :
int foo(uint32_t *a,float *b)
{
....
return 0;
}
what if the arguments become String or array ( of int, float ....)?? any references would be great. thanks