|Non-Confidential||PDF version||ARM DUI0375F|
|Home > Getting Started with the Compiler > Compiler search rules and the current place|
By default, the compiler uses Berkeley UNIX search rules, so source files and
#include header files are searched for relative to the current place. The current place is the directory containing the source or header file currently being processed by the compiler.
#includedirectives. For example, if the current place is the include directory
...\include, and the compiler is seeking the include file sys\defs.h, it locates ...\include\sys\defs.h if it exists. When the compiler begins to process defs.h, the current place becomes
...\include\sys. Any file included by defs.h that is not specified with an absolute path name, is searched for relative to
...\includeis restored only when the compiler has finished processing defs.h.
--kandr_include. This option makes the compiler use Kernighan and Ritchie search rules whereby each nonrooted user
#includeis searched for relative to the directory containing the source file that is being compiled.