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.

How to rebuild the mathlib?

Other Parts Discussed in Thread: MATHLIB

Hi experts,

We want to use mathlib but they are of different function names (e.g. cosf() becomes cossp()). 

In order to not change our code, we tried to rebuild mathlib with OVERRIDE_RTS = 1 but not succeed. Can you suggest us the method?

Thank u very much.

Best Regards.

 

  • Andy,

    It sounds like you wish to rebuild the C66x mathlib, is that correct? That library does not come from the compiler team. I will move this thread to the C66x device forum as the folks there will be more knowledgeable about this. 

  • Aarti,

    I had moved it to C/C+ Compiler forum.  There's no indication of what platform this was referring to and mathlib is a generic library, it's not directly supported by the C66x forum members and I felt it would get more traction in the C/C+ Compiler forum.

    Best Regards,

    Chad

  • Hi experts,

    Anybody know how to rebuild the mathlib? Would u pls help give any suggestions?

    Thank u so much.

    Regards, Andy

  • Andy,

    You didn't answer the question that was asked, which was for what platform are you rebuilding the the Mathlib.

    Best Regards,

    Chad

  • Hi Chad,

    It is for C66X platform.Below pls find the reason why the ctm wants to rebuild a lib while not use the existed.

    The actual reason to rebuild mathlib is that the mathlib is really difficult to be applied to our existing code (need code changes everywhere) since they are of different function names (e.g. cosf() becomes cossp(), operator “/” (or divf()) becomes divsp()). 

    The idea to rebuild mathlib with OVERRIDE_RTS = 1 was actually come from http://e2e.ti.com/support/embedded/bios/f/355/t/212010.aspx (this thread suddenly ended without further info so we have no idea how they solved the problem). We think rebuild mathlib with OVERRIDE_RTS = 1 is true since it does exist in mathlib source code and it indicates it is “rts entry for xxxxx function”.

    Regards,

    Andy

     

  • Hi,

    Rebuild the mathlib according the attached, it faild to generate the final lib. Below pls find the error info. I think u can verify it in your computer and give some suggestion on how to fix it.

    4263.Attachment.zip

    C:/Program Files/Texas Instruments/ccsv4/utils/gmake/gmake --no-print-directory post-build

    'C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.2.2/bin/ar6x

    ''C:' is not recognized as an internal or external command,

    operable program or batch file.

    gmake[2]: [post-build] Error 1 (ignored)

    ' '

    gmake[1]: Leaving directory `C:/Program Files/Texas Instruments/mathlib_c66x_3_0_0_0/packages/ti/mathlib/src/sqrtsp/c66/sqrtsp_66_BE_ELF/Release'

    Build complete for project sqrtsp_66_BE_ELF

  • Hi Andy,

    Sorry for the delay. We are still working on the issue that caused the failure to build with OVERRIDE_RTS. As soon as it is done, I will post the solution here. Thanks for your patience.

    regards,

    Yimin

  • Hi Andy,

    Sorry for the long delay. We have decided to make a patch release to address this RTS override issue. You should see the release in about a month.

    regards,

    Yimin