NitroStartUp

Syntax

void NitroStartUp( void );

Arguments

None.

Return Values

None.

Description

This function is for use with C++.

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 NitroStartUp function is newly defined inside an application, that new function will have priority when linking.

Generally speaking, the Nitro runtime binary startup processes are as follows.

  1. Initialize the stack.
  2. Clear the BSS region.
  3. Initialize the floating point library.
  4. Call NitroStartUp.
  5. Execute static constructor (static initializer).
  6. Call the NitroMain entry.

As you can see from above, NitroStartUp 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 NitroStartUp.

Because the static constructor is executed before NitroMain, if you dynamically secure memory in a static constructor, you must initialize a heap memory managing module (new or delete) and perform any similar necessary operations in NitroStartUp.

See Also

NitroStaticInit

Revision History

2004/02/27 Initial version.


CONFIDENTIAL