1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>NitroStartUp</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">NitroStartUp <img src="../../image/NTR.gif" align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>void NitroStartUp( void );</CODE></PRE>
16</DL>
17<H2>Arguments</H2>
18<P>None.</P>
19<H2>Return Values</H2>
20<P>None.</P>
21<H2>Description</H2>
22<P>This function is for use with C++.</P>
23<P>It describes processes that you want to perform before C++ static constructor calls. In the default implementation nothing is processed. This function is compiled as having weak symbols. If a <CODE>NitroStartUp</CODE> function is newly defined inside an application, that new function will have priority when linking.</P>
24
25<P>Generally speaking, the Nitro runtime binary startup processes are as follows.</P>
26<OL>
27  <LI>Initialize the stack.
28  <LI>Clear the BSS region.
29  <LI>Initialize the floating point library.
30  <LI><B>Call <CODE>NitroStartUp</CODE>.</B>
31  <LI>Execute static constructor (static initializer).
32  <LI>Call the <CODE>NitroMain</CODE> entry.
33</OL>
34<P>As you can see from above, <CODE>NitroStartUp</CODE> is called before the static constructor. If you are creating NITRO applications and want to perform initialization processes before executing a static constructor, you can describe them in <CODE>NitroStartUp</CODE>.</P>
35<P>Because the static constructor is executed before <CODE>NitroMain</CODE>, if you dynamically secure memory in a static constructor, you must initialize a heap memory managing module (<CODE>new</CODE> or <CODE>delete</CODE>) and perform any similar necessary operations in <CODE>NitroStartUp</CODE>.</P>
36
37<H2>See Also</H2>
38<P><CODE><A href="NitroStaticInit.html">NitroStaticInit</A></CODE>
39</P>
40<H2>Revision History</H2>
41<P>2004/02/27 Initial version.</P>
42<hr><p>CONFIDENTIAL</p></body>
43</HTML>