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 add optimization parameters when using codec engine?

Dear Experts,

 

I am using CE to build in order to run on OMAP. right now I want to add the following parameters into:

-O3 -Wall -g -I. -I./ -I./libavcodec -I./libavformat

 

Where can we add them on? I am building them on GPP side, not DSP side. so they should be not added into the file package.bld inside codec folder. right?

 it is illegal when i try to add those parameters in package.bld file. so where to add them in order to use ffmpeg/libav for optimization.

 

Thanks, 

 

dave

 

 

  • The file _config.bld (in the location <codec_engine>/examples) contains the configuration of the platforms and code generation tools for CE.  For ARM compiling, the target GCArmv5T is used, and in _config.bld you can see a line of the form:
         GCArmv5T.ccOpts.prefix += "...";
    that is used to set compiler options.  You can add to this if you like, or you can do separate "+=" for it afterwards:
        GCArmv5T.ccOpts.prefix += "your options";

    This advice applies for all targets, including the DSP (which uses the target C64P, so you could do C64P.ccOpts.prefix += "...").

    Regards,

    - Rob