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.

floating point math function, which RTS should I use for C6747?

Expert 1215 points
Other Parts Discussed in Thread: CCSTUDIO

Hi,

I see the linker picked rts6740.lib. I wonder if the math functions such as cosf, sqrtf atan2f in this RTS is faster that the fastRTS for c67. If not, what should I do in order to use fastRTS?

Tanks

  •  

    The fastRTS is assembly optimized, so it will probably have a better performance than RTS. I say probably because the fastRTS for C67x does not use the C64x+ architecture improvements (SPLOOP for example). 

    Looking  the document:

    http://www.ti.com/litv/pdf/spru100a

    I tem 2.3, explains that all you need to do is to link fastRTS before the RTS. This way the math functions that fastRTS has will have priority over the same functions in RTS. 

  • Thanks.

    I now use the fastmathc67x.lib and it seemed to save me 20% of CPU. Is this one same as the fastRTS, in terms of math functions?

     

  • You can compare the source files to see if the are the same.

    For fassRTS, after you download it from:

    http://focus.ti.com/docs/toolsw/folders/print/sprc060.html

    find the source file at:

    ...\C6700\mthlib\lib\fastrts67x.src - where ... depends where you installed it to

    The dource file for the fastmathc67x.lib library you mentioned is at:

    C:\CCStudio_v3.3\C6000\cgtools\lib\fastmath67x.src

    A good way to compare these files is going to CCS, File-> Difference between files...

    I foung that for CGTools 6.1.5 they are almost identical.

     

     

     

  • I am trying to use the function "recipf" in the FastRTS library for C6747. This function is not included in the fastrts67x.lib file and I should include the "recipsp.asm" file instead, according to the user guide. The problem is that I can not find such as file.
     
    Please can you tell me where to find it?
    Thanks in advance