Tool/software: TI C/C++ Compiler
Hello all,
I'm trying to figure out how to store a string constant into flash with minimal overhead, (yes flash is a restricted resource). I know I can brute force it by "building" the word array manually, but this won't work in my case. The string constant is passed in as a macro definition at compile time, effectively giving the situation:
const unsigned int Table[16] = MACRO_SUPPLIED_NAME;
Where MACRO_SUPPLIED_NAME is a 32-byte long string constant specified in the CCS project as a command line -D option.
I know that TI redefines a byte to be 16 bits, so I suspect that there is now easy way to get the compiler to store each character of the array as 8-bits. Please tell me there is a way.
Regards,
S