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 flags



Hello,

I am using the DM6446EVM

How can i add the optimization flags (like: -O3 -ms0 --symdebug:none --optimize_with_debug=on --opt_for_speed=5) for building a codec runs on the DSP side, or should it added to the server ,, i don't know keeping in mind that I am not using Code composer studio, i am working on Linux
Regards

  • Hi Mostafa,
    What product are are you using (TI-RTOS or SYS/BIOS or other)? Since you aren't using CCS, are you building your application with makefiles?

    Thanks,
    Moses
  • Hi Moses,
    I am using DSP/BIOS from DVSDK 2.00.00.2. Yes, i am building my application using makefiles. Note that I have 3 makefiles: a makefile to build the codec runs at the DSP side and one for building the server and the last one for building the application runs on the ARM side.
    Best Regards
  • Hi Mostafa,

          In your makefile where the compiler is invoked to build the codec, you can simply pass in the options you want. Here's a little example below assuming the rule that builds the code is called buidlCodec, just add your compiler options after the compiler {CC}.

    .buildCodec:

    $(CC) -O3 -ms0 --symdebug:none --optimize_with_debug=on --opt_for_speed=5 $(CodecSources)

    Let me know if this helps

    Moses