Main Content

Defines

Description

Specify preprocessor macro definitions to be added to the compiler command line.

Category:Simulation Target

Settings

Default:''

Enter a list of macro definitions for the compiler command line. Specify the parameters with a space-separated list of macro definitions. If a makefile is generated, these macro definitions are added to the compiler command line in the makefile. The list can include simple definitions (for example,-DDEF1), definitions with a value (for example,-DDEF2=1), and definitions with a space in the value (for example,-DDEF3="my value"). Definitions can omit the-D(for example,-DFOO=1andFOO=1are equivalent). If the toolchain uses a different flag for definitions, the code generator overrides the-Dand uses the appropriate flag for the toolchain.

Command-Line Information

Parameter:SimUserDefines
Type:特征向量
Value:preprocessor macro definition
Default:''

Recommended Settings

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution

No recommendation

Related Topics