Everything

 

-I


This option specifies the folder to search header files (compile phase/assemble phase).

[Specification format]

-I[Δ]path[,path]...

 

-

Interpretation when omitted

The header file is searched from only the folder that holds the source file and the standard header file folder (version folder\inc) (compile phase).

The include file is searched from only the folder that holds the source file and the current folder (assemble phase).

[Detailed description]

-

This option specifies the folder to search for header files which are loaded by preprocessor directive "#include" and include files which are loaded by the assembler's control instruction "$INCLUDE" as path.
Header files are searched according to the following sequence.

<1>

Folder with source files (When files are specified by using " ")

Remark

When inclusion of a file is specified through #include, the folder that holds the file where the #include line is written is searched. When #include specifications are nested, folders are searched in the order from the innermost to the outermost level of the #include nest.

<2>

Path specified by the -I option (If multiple paths are specified, they are searched in the order in which they were specified on the command line (that is, from left to right).)

<3>

Standard header file folder

 

The include files of the assembler are searched according to the following sequence.

<1>

Path specified by the -include option (If multiple paths are specified, they are searched in the order in which they were specified on the command line (that is, from left to right).)

<2>

Folder that holds the source fil

<3>

Current folder

-

If path does not exist, a warning will be output.

-

An error will occur if path is omitted.

[Example of use]

-

To search header files from the current folder, folder D:\include, the standard folder in that order, describe as:

>ccrl -I D:\include -cpu=S2 -dev=dr5f100pj.dvf main.c