The function main() is the user-level
root of the application. It requires the execution environment to
be initialized and input/output functions to be capable of being
called. While in main() the program might perform
one of the following actions that calls user-customizable functions
in the C library:
Extend the stack
or heap.
Call library functions that require a callout to
a user-defined function, for example __rt_fp_status_addr() or clock().
Call library functions that use locale or CTYPE.
Perform floating-point calculations that require
the floating-point unit or floating-point library.
Input or output directly through low-level functions,
for example putc(), or indirectly through high-level
input/output functions and input/output support functions, for example, fprintf() or sys_open().
Raise an error or other signal, for example ferror.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.