-preprocess


This option controls outputting the result of preprocessing.

[Specification format]

-preprocess=string[,string]

 

-

Interpretation when omitted

The comments and line number information of the C source are not output to the preprocessed file.

[Detailed description]

-

This option outputs the comments and line number information of the C source to the preprocessed file.

-

This option is valid only when the -P option is specified.
If the -P option is not specified, a warning is output and this option will be ignored.

-

The items that can be specified as string are shown below.
An error will occur if any other item is specified.

comment

Outputs the comments of the C source.

line

Outputs line number information.

 

<Format of line number information>

#line line-number "file-name"

-

line-number is a decimal number, and the maximum value is the maximum number of unsigned int.

-

In the full path of file-name, "\" is converted to "\\", and '"' to '\"'.
Other than printable characters (including spaces) are output as "\3-digit octal number" ("\\%03o").
Line feed characters are converted to "\\n".

-

If an input source file contains the preprocessor directive '#number "string"' or '#line number "string"', then number is used as line-number, and string as file-name.

 

-

An error will occur if string is omitted.

-

It is output in the standard character encoding of the OS.

[Example of use]

-

To output the comments and line number information of the C source to the preprocessed file, describe as:

>ccrl -preprocess=comment,line -P -cpu=S2 -dev=dr5f100pj.dvf main.c

 

The following example is equivalent to the example above.

>ccrl -preprocess=comment -preprocess=line -P -cpu=S2 -dev=dr5f100pj.dvf main.c