crt *文件在链接中的作用是什么?(What is the role of crt* files in linking?)
我们有几个crt *文件,如/build/csu/crt0.o或/build/csu/crti.o或/build/csu/crtn.o或/build/csu/crtbegin.o或`/build/csu/crtendS.o在构建时与gcc一起使用。
有人能够清楚地向我解释这些文件的作用和功能吗?
We have several crt* files like /build/csu/crt0.o or /build/csu/crti.o or /build/csu/crtn.o or /build/csu/crtbegin.o or `/build/csu/crtendS.o used with gcc while building.
Can someone explain me clearly what is the role and functionality of these files?
最满意答案
crt文件包含运行时 - 这是调用您的main函数,处理程序终止的代码以及有关如何布置函数的一些说明。 这是一个迷你FAQ 。
The crt files contain the runtime - that's the code that calls your main function, handles program termination, and some instructions on how to lay out functions. Here's a mini FAQ.
更多推荐
发布评论