Tool/software: TI C/C++ Compiler
Hi,
I compile my project with C2000 and flags set to:
-v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --cla_support=cla1 --vcu_support=vcu2 -O2 --opt_for_speed=3 ...
The question is that I define a global variable with volatile, but it seems that I never reference it explicitly in my code so it's optimized and I can't find it in .map file.
.cpp:
volatile const int __attribute__ ((section(".init_proc"), used)) test = 99;
.map:
...
.init_proc
* 0 00082780 00000000 UNINITIALIZED
.text:lib
...
Thanks,
Shaoyu