Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.233

Compiler

The Compiler page  contains options specific to the C compiler. If you are using only assembler, you do not need to set any options on this page.

 

To open Compiler page click Project menu / Settings / Compiler.

 

ProjectSettingsCompilertab

 

Compiler Path - Specifies the path to the compiler's EXE file. This setting has global scope. If you wish to call up a batch file, you can not specify its path directly, but must create an intermediate batch file that calls up your batch file. If the compiler path is left blank, then the first argument in the Options setting should be the translator path. This allows per file configuration of the used compiler (since, for example, some older ARM compilers provide a separate compiler for ARM and Thumb mode).

Example: Files are compiled with COMPILE.BAT. To call it from winIDEA, create a new batch file COMPILE1.BAT containing: CALL COMPILE.BAT %1. Specify COMPILE1.BAT as the path to the compiler. winIDEA will replace occurrences of  %1 in the batch file with options configured on the page.

 

Options - Enter command line options the compiler should called with when the selected file is compiled. These will usually be code generation options, conditional defines, etc. Additionally macro entries are supported, available from the button on the right of the Options edit field. The simplest command line option will usually contain the macro for the file name being compiled: $(EDNAME). This macro will expand to the full file name at the time when the compiler is invoked. This setting has file scope.

 

Command Line Defines - Specifies all command line defines needed for the compiler to operate.

 

Prefix/Postfix - Used when the $(DEFINES) macro is used. Every command line defines specified is completed with the value specified in the Prefix and Postfix options.

 

Argument file - Compiler can use parameters from an argument file. If this file contains winIDEA macros which should be resolved before the compiler is called, specify this file here.

Copyright © 2024 TASKING Germany GmbH