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?
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?
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.