We have a CCS solution with many projects. Several are TMSC1294 and use TI compiler v5.2.2 and several are MINGW builds for a parallel PC based build.
I ran into the issue with the code generated by the ARM compiler for enum values. It seems the MINGW build follow the C99 standard where enums are by default ints which leads to a sizeof() = 4; With the exact same code compiled for the Tiva I get sizeof() = 1. This causes issues which I will not go into detail here. It seems, by default, the TI compiler optimizes enums when the number of elements are less than 256. I found a way to over ride this by setting Build->ARM Compiler->Advanced Option->Run Time Model Option->Designate enum type from its default of “packed” to “Int”. Unfortunately because of all the projects and permutations of these projects it is not practical for me to go in and change this setting in every single project. And besides how can I be assured anyone creating a new Tiva project will remember to go in and change this obscure compiler setting. I asked before if it might be possible to somehow set this globally and I was told it is not possible (please correct me if this is wrong). Another option I was thinking about is if it might be possible to set this in an .h file? I know some compilers allow compile options in the actual header file. Is this possible? If so, what might the syntax be to set this?