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.

AM2434: Q. AM2434 Compiler and Optimization Settings for Higher Execution Efficiency

Part Number: AM2434
Other Parts Discussed in Thread: SYSCONFIG

Hi experts,

To improve the R5F & PRU execution efficiency.

Regarding the compiler selection and optimization settings for the R5F and PRU cores, are there any better configuration recommendations? 

Our current configuration is as follows:

Item Version / Setting
R5F Compiler Version TI Clang v2.1.2LTS
SDK 8.6.0.45
SysConfig 1.14.0
PRU Compiler Version TI v2.3.3
PRU Silicon Version 3
R5F Clock 800M Hz
PRU Clock 333M Hz
  • R5F-Optimization Setting
    image.png
  • PRU-Optimization Setting

If there are other relevant settings not listed above that can further improve execution efficiency, we would greatly appreciate any additional configuration recommendations from the experts. Thank you very much.

 

Best Regards

Bolt

  • Hi Bolt,

    R5F-Optimization Setting

    The above optimization looks okay. For maximum performance optimization you can use the -O3 flag is recommended and for size optimization -Oz is recommended.

    For both performance and size optimization, use -Os flag.

    If there are other relevant settings not listed above that can further improve execution efficiency, we would greatly appreciate any additional configuration

    Please refer tiarmclang-optimization-options to get more details on TI ARM CLANG optimizations.

    PRU-Optimization Setting

    Please refer section 3.1 Invoking Optimization of spruhv7c.pdf for more details on PRU optimization.

    The --opt_for_speed=5 used above will optimize the performance/speed by having high risk of worsening or impacting code size.

    Regards,

    Tushar

  • Hi Tushar,

    Thank you for your response.

    I will reference the document to optimize our setting.

    If I encounter any further settings that are unclear, I will reach out again for clarification.

    Best Regards
    Bolt