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.

TMS320F280039: How to include RTS library in .cla file?

Part Number: TMS320F280039

When using the function __claabi_memset() provided in file "C:\ti\ccs2050\ccs\tools\compiler\ti-cgt-c2000_25.11.0.LTS\lib\src\cla_memset.cla" in my .cla file, I get the warning:


"warning #225-D: function "__claabi_memset" declared implicitly"

Where can I find the header file providing the function prototype for this implementation? What do I have to write after the "#include" in my .cla file?

  • Hi Oliver,

    The CLA compiler doesn't have access to most functions from the runtime support library. What are you trying to use that function for? I believe __claabi_memset() isn't intended for direct code usage. 

    Best Regards,

    Delaney

  • I need "memset" (provided by <string.h>) in my CLA code. But the including of "<string.h>" into the cla file leads to a compilation error. So I looked for alternatives and based on the name of the file "cla_memset.cla, I assumed, that this is intended for cla usage. I also verified that it works as intended. I just couldn't find a suitable header. If this function is not intended for direct code usage, is there a memset-function that is intended for usage in cla code?

  • Hi Oliver,

    Unfortunately, the string.h library is not accessible by the CLA as you mentioned, and therefore the CLA compiler cannot recognize string types or use these functions. I'm not sure what exactly the __claabi_memset() function is used for, but it is my understanding that the CLA doesn't have a way to use strings. The CLA core was designed to do floating point math operations. 

    Let me loop in a compiler expert to comment on the __claabi_memset() function. 

    Best Regards,

    Delaney

  • based on the name of the file "cla_memset.cla, I assumed, that this is intended for cla usage

    That is a reasonable guess. However, the function  __claabi_memset is not part of the public interface of the compiler.  It is not documented, and subject to change at any time with no notice.  Code generated by the CLA compiler calls it under some circumstances.

    is there a memset-function that is intended for usage in cla code?

    Unfortunately, no.  The best solution is to provide your own implementation.

    Thanks and regards,

    -George