Skip to content
EntityQ5189740· pop 8· linked from 43 articles

' (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 sections
Contents
  • 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.

Available in 8 languages

via Wikidata sitelinks · CC0

Connections

Categories