SPNU118Z September 1995 – March 2023 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , AM1705 , AM1707 , AM1802 , AM1806 , AM1808 , AM1810 , AM5K2E04 , OMAP-L132 , OMAP-L137 , OMAP-L138 , SM470R1B1M-HT , TMS470R1A288 , TMS470R1A384 , TMS470R1A64 , TMS470R1B1M , TMS470R1B512 , TMS470R1B768
These rules apply to linker expressions:
The linker supports the C language operators listed in Table 8-11 in order of precedence. Operators in the same group have the same precedence. Besides the operators listed in Table 8-11, the linker also has an align operator that allows a symbol to be aligned on an n-byte boundary within an output section (n is a power of 2). For example, the following expression aligns the SPC within the current section on the next 16-byte boundary. Because the align operator is a function of the current SPC, it can be used only in the same context as . —that is, within a SECTIONS directive.
. = align(16);
Group 1 (Highest Precedence) | Group 6 | ||||
---|---|---|---|---|---|
! ~ - |
Logical NOT Bitwise NOT Negation |
& | Bitwise AND | ||
Group 2 | Group 7 | ||||
* / % |
Multiplication Division Modulus |
| | Bitwise OR | ||
Group 3 | Group 8 | ||||
+ - |
Addition Subtraction |
&& | Logical AND | ||
Group 4 | Group 9 | ||||
>> << |
Arithmetic right shift Arithmetic left shift |
|| | Logical OR | ||
Group 5 | Group 10 (Lowest Precedence) | ||||
== ! = > < < = > = |
Equal to Not equal to Greater than Less than Less than or equal to Greater than or equal to |
= + = - = * = / = |
Assignment A + = B A - = B A * = B A / = B |
is equivalent to is equivalent to is equivalent to is equivalent to |
A = A + B A = A - B A = A * B A = A / B |