Keil Logo


4.23 __rt_entry

The symbol __rt_entry is the starting point for a program using the ARM® C library.

Control passes to __rt_entry after all scatter-loaded regions have been relocated to their execution addresses.


The default implementation of __rt_entry:
  1. Sets up the heap and stack.
  2. Initializes the C library by calling __rt_lib_init.
  3. Calls main().
  4. Shuts down the C library, by calling __rt_lib_shutdown.
  5. Exits.
__rt_entry must end with a call to one of the following functions:
Calls atexit()-registered functions and shuts down the library.
Shuts down the library but does not call atexit() functions.
Exits directly to the execution environment. It does not shut down the library and does not call atexit() functions.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.