The plus sign ('+') is used as the unary plus operator and as the
addition operator.
The unary plus operator is used to assign a positive value to the
specified operand. This operator does effectively nothing to
alter the value of the operand.
The addition operator is used to add the values of two
operands which may be absolute or relocatable. The type of the
resulting expression is determined by the operand types as shown in
the following table:
Operand Types
Resulting Expression Type
absolute + absolute
absolute
absolute + relocatable
relocatable
relocatable + absolute
relocatable
relocatable + relocatable
Error: Not allowed.
Note
As a general rule, relocatable expressions must evaluate to a
relocatable symbol plus or minus an optional constant value
(displacement).
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.