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 build the dsplib for C6400 with ELF ABI

Hi, all

We decide to release our code in COFF and ABI format for C6400 processor, but the problem is we can only get the dsplib for C6400 with COFF format. And we decide to build the ELF format dsplib by ourself. And I found the guide to build the library from source code and the command is as follows

mk6x dsp64x.src –l dsp64x.lib

The problem is :

1. When build that under our Linux server, it doesn't work for any source, no matter the dsp64x.src, dsp64x_c.src for dsp64x_sa.src, so can I build the source code in Linux environment?

2. How to build from the source package withe elf support, I only know the compiler options " --abi=eabi --strip_coff_underscore", how to invoke the options when calling mk6x.

By the way, I'm using compiler version 7.2.2.

BR

Touse

  • We compiler experts are not responsible for dsplib.  I'll move this thread to the C64x DSP forum.

    Thanks and regards,

    -George

  • George,

    Let me rephrase this question. Does the mk6x utility for library building allow creation of ELF libraries. From the help content of the mk6x utility, it does not provide any option for ELF library building.

    The question has come up from a legacy library building point of view where this utility was used to build the library from .src source files.

    Touse,

    An alternate approach is to try to break the single large .src file into separate source files, compile using cl6x and archive using ar6x utility.

    Regards,

    Rahul

  • Thanks Rahul

    If mk6x can't build the library with ELF format, then it's a good idea to use cl6x and ar6x, but the question is how to split the *.src file into single source files. I don't know the format of the *.src file. Do you have any idea? Really appreciate your reply.

    BR

    Touse

  • Touse,

    Could you tell us what device you are using and if there are any specific functions inside of this library that you want to use in your application.

    Incase you have just one or two functions from this library, you always have the option of manually extracting the code for those functions and including the source directly in your project. This may the quickest way for you to proceed.

    Regards,

    Rahul

  • Hi, Rahul

    What we presently required is DSP_fft16x32() function, but we may need some other functions from the dsplib later, so the best solution would be to get the source code and rebuild a dsplib for ELF format. Now the problem is how to extract and get the single source file.

    BR

    Touse

  • Thanks Rahul

    Just find the answer in one of your other post here

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/112/t/138869.aspx#500240

    Use ar6x -x <file_name.src> to obtain individual source files

    We'll try this way.

    Thanks a lot.