< Compile Options / Object Options >
[Format]
-output = <sub> [=<file name>]
<sub>: { prep | src | obj | abs | hex | sty | dep }
|
The default for this option is -output=obj.
[Description]
- | This option specifies the output file type. |
- | The suboptions and output files are shown in the following table. |
- | If no <file name> is specified, a file will be generated with an extension, that is shown in the following table, appended to the source file name input at the beginning. |
Table 2.3 | Suboption Output Format |
|
|
|
|
|
prep
|
Source file after preprocessed
|
C (C89, C99) source file: p
C++ source file: pp
|
|
src
|
Assembly-language file
|
src
|
|
obj
|
Relocatable file
|
obj
|
|
abs
|
Absolute file
|
abs
|
|
hex
|
Intel hex type file
|
hex
|
|
sty
|
Motorola S type file
|
mot
|
|
dep [V2.00.00 or later]
|
Header file dependency file
|
dep
|
Note | Relocatable files are files output from the assembler.
Absolute files, Intel hex type files, and Motorola S type files are files output from the optimizing linkage editor. |
[Example]
ccrx test.c -isa=rxv3 -output=dep
|
<test1.h>
#include "test2.h"
|
<test.c>
#include <stdio.h>
#include "test1.h"
|
test.obj: test.c
test.obj: stdio.h
test.obj: test1.h
test.obj: test2.h
|
Note 1. | The output might include a path. |
Note 2. | The example shows only some of the files in the output file. The actual output file contains all files with dependencies. |
[Remarks]
- | An intermediate file used to generate a file of the specified type is not generated. |
- | When a file name is specified with -output=dep, use the -MF option. [V3.08.00 or later] |