Datasheet
C and C++ Compilers
2-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
The search path
Table 2-2 shows how the various command-line options affect the search path used by
the compiler when it searches for included header and source files. The following
conventions are used in the table:
:mem
The in-memory file system where the ARM compilers store ANSI C and
some C++ header files. See The in-memory file system on page 2-6 for
more information.
ARMINC
The list of directories specified by the
ARMINC
environment variable, if it
is set.
CP
The current place. See The current place on page 2-6 for more
information.
Idir and jdirs
The directories specified by the
-I
and
-j
compiler options.
Table 2-2 Include file search paths
Compiler option <include> "include"
Neither
-I
or
-j :mem
and
ARMINC CP
,
ARMINC
, and
:mem
-j jdirs CP
and
jdirs
-I :mem
,
ARMINC
, and
Idirs CP
,
Idirs
,
ARMINC
, and
:mem
Both
-I
and
-j Idirs
and
jdirs CP
,
Idirs
, and
jdirs
-fd
No effect Removes
CP
from the search path,
so the search is now the same as
that invoked with angle brackets
-fk
No effect Uses Kernighan and Ritchie search
rules