Specifying Debug and Optimization Compiler Flags - 2023.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2023-12-13
Version
2023.2 English

The Vitis software platform assigns a default optimization level and debug flags for the application component. You can change the default value for your application component.

To set properties for your project:

  1. Click your application component in component view and expand Settings. Open the UserConfig.cmake file under settings directory.
  2. Under Compiler Settings, select Optimization.
  3. In the Optimization section, select the optimization level by clicking the drop-down button. Debugging section is under the Optimization section. Similarly, click the drop-down button to change the debug level. You can input other optimization flags or debug flags in the other flags field.

    Note: UserConfig.cmake supports GUI format and text format. You can click the </> icons to access the source editor to view the source code and modify the settings in text format.