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.

Where do I specify compiler arguments in XDAIS codec?

Guru 10685 points

I have written a codec closely based on the XDAIS iUniversal example codec. How do I specify command line arguments to the compiler? I've been going over spru198k, TMS320C6000 Programmer's Guide, and trying to optimise my algorithm. I'm new to the world of DSP programming.

The only files (apart from the source code) that I have in the codec directory are these:

config.bld  makefile  package.bld  package.xdc  package.xs

I've had a look inside all of them but can't tell where to specify compiler options. I know how makefiles work but this is completely different.

Thanks,

Ralph

  • Ralph,

    Did you use the gencodec wizard to generate your codec or did you simply copy one out of the existing examples?

    What version of XDAIS/CE/FC are you using ?

  • Hi Gunjan,

    I used GenAlg to create the codec. Yes, I also made use of GenCodecPkg but I thought that was for a later stage? The actual algorithm compilation occurs at the XDAIS level before it is wrapped up with CE extensions etc to make a codec package. Please let me know if my understanding is incorrect.

    I'm using codec_engine_3_23_00_07, framework_components_3_23_00_13 and xdais_7_23_00_06.

    Thanks,
    Ralph

  • Ralph,

    These packages are built using "XDC". If you look at the makefile, you will see it calling XDC with some options and a build goal. There is a wealth of information about RTSC and XDCTools here:-

    http://rtsc.eclipse.org/docs-tip/XDCtools_User's_Guide

    To answer your question specifically. 

    Take a look at your config.bld, you will see a line that specifies "ccopts" for the target you picked to create your codec for. A line like this:-

    targ.ccOpts.suffix = "-mi10 -mo ";

    You could add additional compiler options here.

    To learn more about these particular lines, in CCS navigato the the Help section, and then to XDCTools help and then to "interface ti.targets.ITarget". You will see explanation of all the different options there (including ccOpts), that are associate with the configuration parameter called "targ" in this config.bld.

  • Thanks, this worked for me.