Files crt * .o in C

0

What are the crt1.o,crt0.o,crti.o e crtn.o files in a C program? I know that the .o extension has to do with the object file, but what do the files cited serve?

    
asked by anonymous 19.04.2017 / 16:50

1 answer

2

crt*.o are the implementations of C R t ime, the set of functions that support basic C functions such as stubs that transform function calls to system calls > in traps , the code that initializes the stack and organizes the argv vector before passing execution to main() , etc. They are required on so-called hosted systems, where the runtime must provide some minimal services.

    
19.04.2017 / 18:56