Keil Logo

Technical Support

On-Line Manuals

Compiler User Guide

Preface Overview of the Compiler Getting Started with the Compiler Compiler command-line syntax Compiler command-line options listed by group Default compiler behavior Order of compiler command-line options Using stdin to input source code to the compiler Directing output to stdout Filename suffixes recognized by the compiler Compiler output files Factors influencing how the compiler searches for Compiler command-line options and search paths Compiler search rules and the current place The ARMCC5INC environment variable Code compatibility between separately compiled and Linker feedback during compilation Unused function code Minimizing code size by eliminating unused functio Compilation build time Compilation build time Minimizing compilation build time Minimizing compilation build time with a single ar Effect of --multifile on compilation build time Minimizing compilation build time with parallel ma Compilation build time on Windows Compiler Features Compiler Coding Practices Compiler Diagnostic Messages Using the Inline and Embedded Assemblers of the AR Compiler Command-line Options Language Extensions Compiler-specific Features C and C++ Implementation Details What is Semihosting? Via File Syntax Summary Table of GNU Language Extensions Standard C Implementation Definition Standard C++ Implementation Definition C and C++ Compiler Implementation Limits

Compiler command-line options and search paths

2.10 Compiler command-line options and search paths

The following table shows how the specified compiler command-line options affect the search path used by the compiler when it searches for header and source files.

Table 2-2 Include file search paths

Compiler option <include> search order "include" search order
Neither -Idir[,dir,...] nor -Jdir[,dir,...]
  1. ARMCC5INC
  2. ARMINC
  3. ../include
  1. The current place.
  2. ARMCC5INC
  3. ARMINC
  4. ../include
-Idir[,dir,...]
  1. ARMCC5INC
  2. ARMINC
  3. ../include
  4. The directory or directories specified by -Idir[,dir,...] .
  1. The current place.
  2. The directory or directories specified by -Idir[,dir,...].
  3. ARMCC5INC
  4. ARMINC
  5. ../include
-Jdir[,dir,...] The directory or directories specified by -Jdir[,dir,...].
  1. The current place.
  2. The directory or directories specified by -Jdir[,dir,...].
Both -Idir[,dir,...] and -Jdir[,dir,...]
  1. The directory or directories specified by -Jdir[,dir,...].
  2. The directory or directories specified by -Idir[,dir,...].
  1. The current place.
  2. The directory or directories specified by -Idir[,dir,...].
  3. The directory or directories specified by -Jdir[,dir,...].
--sys_include
No effect. Removes the current place from the search path.
--kandr_include
No effect. Uses Kernighan and Ritchie search rules.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.