My C66 timer won't compile under clacc
/* TI DSP C66 intrinics */
#include <c6x.h>
/* A gettimeofday routine to give access to the wall
clock timer on most UNIX-like systems. */
double mysecond(void)
{
return ((double)_itoll(TSCH, TSCL) * 1.0e-9);
}
cl6x --abi=elfabi --openmp --cbe -I/opt/ti/c6000_7.6.0B1/include -O3 -I/opt/ti/openmp_dsp_2_01_12_00/packages/ti/runtime/openmp stream_dsp.c
"stream_dsp.c", line 418: error: identifier "TSCH" is undefined
"stream_dsp.c", line 418: error: identifier "TSCL" is undefined
2 errors detected in the compilation of "stream_dsp.c".
This is confirmed to be defined in c6x.h and this code has compiled previously directly with cl6x. Seems that clacc is improperly filtering DSP intrinsics prior to compilation with cl6x
This is probably related to similar issue with instruction intrinsics unable to be used to optimize FIR function with clacc.