I'm encountering some problem compiling, with optimizations, a code which uses the intrinsic "__byte((int*)foo, CONST)".
The problem is present from the version 6.1.6 to the version 6.2.5 of the C2000 compiler (not tried the versions from 6.1.1 to 6.1.5).
On a new project for F2837xD I get "INTERNAL ERROR: Illegal use of intrinsic: __byte"
In an old project for C28346 I get "INTERNAL ERROR: no match for MCALL".
It seems related to the use of __byte() passing a constant as byte_index parameter; using a variable (in a for() loop for example) it works as it should do.
Someone encountered the same problem? Is there a solution?
Thank you. BR,
Gianluca