Part Number: TMS320F2808
Tool/software: TI C/C++ Compiler
Hello.
I have picked up some old code that has the following
register volatile UINT16 A;
register volatile UINT16 B;
register volatile UINT16 *P;
Using an old compiler (version 3.09) and the command: cl2000 -g -ss -mf -ml -v28
all three variables are allocated to registers.
I'm trying to move to the latest compiler (version 18.1.4.LTS), but find that only P is allocated to a register. Compiling with cl2000 -v28 -ml -mt -Ooff -g --gen_func_subsections=on
Is there any way to more aggressively force the use of registers for all three variables?
Regards, Giles