crt0

from Wikipedia, the free encyclopedia

crt0 (also known as c0 ) describes the basic program initialization functions of a program written in C or C ++ . This includes, for example, creating the stack and initializing global variables. Crt is the abbreviation for C runtime , the zero stands for the very beginning . The jump to main(…), the entry point of a C or C ++ program, is also coded there.

The content of crt0 depends largely on the compiler used, the operating system and the implementation of the C standard library . In C ++, for example, the global constructors are initialized in it. Application-specific extensions can also be added.

Individual evidence

  1. ^ Program initialization: Creating a C library on osdev.org. Retrieved January 18, 2016.
  2. crt0, the main startup file on haw-hamburg.de. Retrieved January 18, 2016