SetupCompiler
Description
Setup target compiler and its parameters. This dialog allows the user to specify the compiler used to create the program along with the memory model, default calling convention, ABI and other parameters. Please note that while some combinations of the parameters are meaningless, IDA doesn't check them for validity. It is up to the user to specify a correct combination.
IDA tries to determine the correct values automatically.
The include directories are a list of directories that look for the standard C headers. This parameter is used during parsing C header files (the Parse C header file... command; action LoadHeaderFile). The directories must be separated by ';' in MS Windows and ':' in Linux. The predefined macros field has the same format and is used similarly. Please note that IDA doesn't define any compiler-specific macros by default.
Include directories
The include directories can be edited as the usual single line, or — after a click on the chevron next to the field — in a small editor holding one directory per line:


Collapsing the editor (or accepting the dialog while it is open) recomposes the single line, using the platform's path separator.
Source parser
Type declarations are parsed by the clang-based parser, which understands C, C++, Objective-C and Objective-C++ out of the box. The Source parser group of the Compiler options dialog shows the active parser and its command-line arguments (with ready-made presets for common targets); hovering the parser shows the languages it supports.

Other parsers can be selected from the dropdown if needed:
clang - the default parser (based on LLVM)
legacy - old internal IDA parser (deprecated, will be removed in future versions)
Parser Configuration
The parser can be fine-tuned in its own options dialog, opened by the Configure ... button next to it.

Last updated
Was this helpful?
