8.6.4 Expression rules in scatter files
Expressions follow the C-Precedence rules.
Expressions are made up of the following:
- Decimal or hexadecimal numbers.
AND operators map to the C operators | and
LAND operators map to the C operators
Zero is returned when the expression evaluates to false and nonzero is returned when
This matches the C conditional operator. If
evaluates to nonzero then
is evaluated otherwise
When using a conditional operator in a
context on an execution region or load region description, the final expression is
considered relative only if both
, are considered relative. For
er2 ((ImageLimit(er1) < 0x9000) ? +0 : +0x1000) ; er2 has a relative address
er3 ((ImageLimit(er2) < 0x10000) ? 0x0 : +0) ; er3 has an absolute address
- Functions that return numbers.
All operators match their C counterparts in meaning and precedence.
Expressions are not case-sensitive and you can use parentheses for