UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 59856

Xilinx SDK - How to Change Compiler Options for BSP Code?

Description

I need to change the compiler options for an applications BSP. 

For example, how can the code optimization level used by the compiler be changed?

Solution

Navigate to the BSP Settings (Right-click on your BSP -> Board Support Package Settings).

Click Overview -> Drivers -> CPU -> Extra Compiler Flags.
 
In the Extra Compiler Flags, you can add the options required.  

For example add -O0 to turn off optimization.  

This option will overwrite the -O2 default setting.
AR# 59856
Date Created 03/19/2014
Last Updated 05/21/2014
Status Active
Type General Article
Tools
  • EDK
  • EDK - 14
  • Vivado Design Suite
  • More
  • Vivado Design Suite - 2013.4
  • Vivado Design Suite - 2013.3
  • Less