Everything

 

-obj_path


This option specifies the folder to save an object file generated during compilation.

[Specification format]

-obj_path[=path]

 

-

Interpretation when omitted

The object file is saved under the source file name with the extension replaced by ".obj" to the current folder.

[Detailed description]

-

This option specifies the folder to save an object file generated during compilation as path.

-

If an existing folder is specified as path, the object file is saved under the source file name with the extension replaced by ".obj" to path.
An error will occur if a nonexistent folder is specified.

-

An existing file can be specified as path.
If one object file is output, it will be saved with path as the file name.
If two or more object files are output, an error will occur.
An error will occur if a nonexistent file is specified.

-

If "=path" is omitted, the object file is saved under the C source file name with the extension replaced by ".obj" to the current folder.

-

If two or more files with the same name (even if they are in different folders) are specified as source files, then a warning is output, and an object file is only saved for the last source file to be specified.

[Example of use]

-

To save the object file generated during compilation to folder "D:\sample", describe as:

>ccrl -obj_path=D:\sample -cpu=S2 -dev=dr5f100pj.dvf main.c