‑‑manual_crun_init
Syntax
‑‑manual_crun_init
For use with
The linker
Description
Use this option to to prevent the linker from generating an automatic initialization entry for the C‑RUN initialization routine __as_init. Under normal circumstances this is not needed, but if you have a custom system startup file that does not use the IAR initialization tables (you initialize everything manually), this is useful.
The __as_init routine must be called after initialization and zeroing, but before control is transferred to main.
Warning
If the __as_init function is not called, important parts of C-RUN will not work and C-RUN might crash.
Note
Some parts of C-RUN—in particular the debug heap—might introduce new sections that need to be initialized or zeroed. The custom startup file must handle all such initialization.
See also
Caution
This option is not available in the IDE.