crt *文件在链接中的作用是什么?(What is the role of crt* files in linking?)

编程入门 行业动态 更新时间:2024-10-28 00:29:55
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.

更多推荐

本文发布于:2023-08-07 04:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1460066.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作用   链接   文件   crt   files

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!