This option defines assembler symbols.
[Specification format]
-Dname[=def][name[=def]]...
|
- | Interpretation when omitted |
None
[Detailed description]
- | This option defines name as an assembler symbol. |
- | Specification of def is as follows. |
- | Only integer values can be specified. |
- | If a value other than an integer is specified, 0 is assumed. |
- | Integer values can be specified in decimal notation, octal notation with the prefix method (0 ...), and hexadecimal notation (0x ...). |
- | Only a negative (-) sign (not a positive (+) sign) can be specified at the beginning of the value. |
- | A negative number is converted to a two's complement value. |
- | This is equivalent to adding "name .SET def" at the beginning of the assembly source program. |
- | 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 assembler symbol, the option specified last will be valid. |
[Example of use]
- | To define "sample=256" as an assembler symbol, describe as: |
>asrh -Dsample=256 -Xcommon=rh850 main.asm
|