ARM VERSION 1.2 Datový list Strana 113

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 276
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 112
The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-23
The default implementation of
__rt_entry
:
1. Sets up the heap and stack.
2. Initializes the C library.
3. Calls
main()
.
4. Shuts down the C library.
5. Exits.
__rt_entry
must end with a call to one of the following functions:
exit()
To get full
atexit()
handling and library shut down.
__rt_exit()
To correctly shut down the library, bypassing
atexit()
processing.
_sys_exit()
To exit directly to the execution environment, bypassing
atexit()
.
4.4.4 __rt_exit()
This function shuts down the library but does not call functions registered with
atexit()
.
Syntax
void __rt_exit(int code)
code
Is not used by the standard function.
Implementation
The exit functions differ in their handling of the libraryand
atexit()
functions:
exit()
Calls
atexit()
-registered functions and shuts down the library.
__rt_exit()
Shuts down the library but does not call
atexit()
functions.
_sys_exit()
Does not shut down the library or call
atexit()
functions.
Returns
The function does not return.
4.4.5 __rt_lib_init()
This is the library initialization function and is the companion to
__rt_lib_shutdown()
.
Zobrazit stránku 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 275 276

Komentáře k této Příručce

Žádné komentáře