crt0
Sign in to save' (also known as ') is a set of execution startup routines linked into a C program that performs any initialization work required before calling the program's main function. After the main function completes the control returns to crt0, which calls the library function exit(0) to terminate the process.
~2 min read
Article
5 sectionsContents
- Form and usage
- Example crt0.s
- See also
- References
- External links
' (also known as ') is a set of execution startup routines linked into a C program that performs any initialization work required before calling the program's main function. After the main function completes the control returns to crt0, which calls the library function exit(0) to terminate the process.
==Form and usage== Crt0 generally takes the form of an object file called , often written in assembly language, which is automatically included by the linker into every executable file it builds.