if directive
In this section:
Syntax
if (expr) {directives[ } else if (expr) {directives] [ } else {directives] }
where expr is an expression, see Expressions in linker configuration files.
Parameters
| Any ILINK directive. |
Description
An if directive includes or excludes other directives depending on a condition, which makes it possible to have directives for several different memory configurations, for example, both a banked and non-banked memory configuration, in the same file.
The text inside a non-selected part of an if directive is not checked for syntax. The only requirements for such text, is that it can be tokenized, and that any open brace ({) token has a matching close brace (}) token.
Example
See Empty region.