In many other c compilers, math functions are allowed to used in a constant expression,

but this is not allowed in CCS. I tested at CCS v4 and v5, and both reports errors.

For example,

_iq20 ary[3] = {_IQ20(exp(-0.4)), 0, _IQ20(sin(1.57))};

I think this is a very useful functionality, if this is not allowed, we have to use statements

to fill in the values as below.

ary[0] = _IQ20(exp(-0.4));

ary[1] = 0;

ary[2] = _IQ20(sin(1.57));

In this way, many math functions are linked to .out file automatically.