Цитата(zltigo @ Jul 8 2008, 16:50)

2. bss инициализируется нулями, если только специально не постараться.
= IAR (стр 43 (67) ODARM_1.pdf). Но не каждый транслятор так делает:
\begin{excerpt:link=http://focus.ti.com/lit/ug/spnu151d/spnu151d.pdf}
5.12 Initializing Static and Global Variables in TIABI and TI ARM9 ABI Modes
The ANSI/ISO C standard specifies that global (extern) and static variables without explicit initializations
must be initialized to 0 before the program begins running. This task is typically done when the program is
loaded. Because the loading process is heavily dependent on the specific environment of the target
application system, the compiler itself makes no provision for preinitializing variables at run time. It is up to
your application to fulfill this requirement.
\end{excerpt}
--
AN