‑‑entry
Syntax
‑‑entry symbol
Parameters
| The name of the symbol to be treated as a root symbol and start label |
Description
Use this option to make a symbol be treated as a root symbol and the start label of the application. This is useful for loaders. If this option is not used, the default start symbol is __iar_program_start. A root symbol is kept whether or not it is referenced from the rest of the application, provided its module is included. A module in an object file is always included but a module part of a library is only included if needed.
Note
The label referred to must be available in your application. You must also make sure that the reset vector refers to the new start label, for example ‑‑redirect __iar_program_start=_myStartLabel.
See also
Caution
Project>Options>Linker>Library>Override default program entry