This option defines preprocessor macros.
[Specification format]
-D[Δ]name[=def][,name[=def]]...
|
- | Interpretation when omitted |
None
[Detailed description]
- | This option defines name as a preprocessor macro. |
- | This is equivalent to adding "#define name def" at the beginning of the source file. |
- | This option can be used to redefine C language macros that have been defined already: __STDC__, __LINE__, __FILE__, __DATE__, __TIME__, __RENESAS_VERSION__, __RL78__, __CCRL__, __CCRL, __RENESAS__ (except for -D __RL78__[=1], -D __CCRL__[=1], -D __CCRL[=1] and -D __RENESAS__[=1]).
If any of these macros is redefined, a warning will be output. |
- | An error will occur if name is omitted. |
- | If "=def" is omitted, def is regarded as 1. |
- | This option can be specified more than once. |
- | If both this option and -U option are specified for the same preprocessor macro, the option specified last will be valid. |
[Example of use]
- | To define "sample=256" as a preprocessor macro, describe as: |
>ccrl -D sample=256 -cpu=S2 -dev=dr5f100pj.dvf main.c
|