This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: C2000 18.1.0LTS compiler: rts2800_ml.lib: s_sinf function

Tool/software: TI C/C++ Compiler

Hello everyone

I have an issue with "sin()" function from the latest rts2800_ml.lib (compiler 18.1.0LTS). 

I use F28035 without hard-fp, but i need to perform some operations with floating point. Actually i have to calc sin and cos for FP numbers. But with the new compiler my code needs HUGE amount of memory.

I have checked memory allocation and discovered, that "sin()" and "cos()" functions take 3 kW of memory. 

So i have created a new project with "sin()"call only and compared three "rts2800_ml.lib" libraries: from 18.1.0, from 16.9.6 and from 6.2.0. I have used 18.1.0 compiler for all of these cases; just different libs.

The result: 18.1.0 - 3690 words / 16.9.6 - 671 words / 6.2.0 - 136 words. But the last one is a little cheating, because there is not "s_sinf", but "sin" function ( i don't know the difference, to be honest).

So the question is - what is that?  

  • Thank you for notifying us of this problem.  I can reproduce the same result.  I filed CODEGEN-4493 in the SDOWP system to have this investigated.  This entry does not report a bug in the tools, but reports a performance problem.  In this case, the code size is too big.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • Thank you, George.
    If someone is interested, i solved the problem by now by putting source files for "sin()" and "cos()" right into project. I took them from 6.2.0 rts_lib, since they have the smallest size in that lib.