Want to translate the following code (C51) to ARM
const char code *txt_unidade_forca[] = { "gf ", "kgf", "N ", "lbf", NULL};
In this case both texts and pointers are placed in CODE. How to do this in ARM ?
const char *const txt_unidade_forca[] = { "gf ", "kgf", "N ", "lbf", NULL};
As a general rule, the const to the left of the asterisk refers to the strings, the one to the right refers to the array of pointers.
Regards, - mike
I know. The question is : How to place both (texts and pointers) in code with Realview ?
Sorry Mike, I didn't understand your post for the first time. Now Understood what your mean. Will try and see.