This directive may not be specified on the command line.
Description
The NOINIT directive specifies that declared variables are
not initialized to zero (0) at the startup (reset) of the program.
This directive does not disable explicit variable initializations at
source level. It affects only the implicit zero initialization of
global and static variables.
Embedded systems with non-volatile memory may require that
variables are not cleared to zero at startup. The INIT
directive may be used with the NOINIT directive to switch back
and forth between variables which should be initialized and those
which should not.
Note:
Automatic (local) variables which are declared inside a
function are stack-based and are never initialized at startup time.
It is the resposiblity of the programmer to supply an initial value
to such variables if required.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.