C++ 是什么意思?运行时?

发布于 2024-08-13 05:25:31 字数 22 浏览 3 评论 0原文

C++ 运行时完成了哪些活动?

What are all the activities done by C++ runtime?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

無處可尋 2024-08-20 05:25:31

它处理应用程序的启动和关闭,以及它运行所需的核心服务 - 例如初始化堆栈和静态变量,以及提供堆和默认内存分配器。

It handles startup and shutdown of your application, and the core services it needs to run - things like initialising the stack and static variables, and providing the heap and default memory allocators.

最美不过初阳 2024-08-20 05:25:31

来自 Wikipedia

术语 C 运行时库在某些平台上用于指代一组基础库,可以以可动态链接的形式与操作系统(带或不带头文件)一起分发,或者与 C 编译器一起分发。有时使用的另一个术语是 libc。并非任何库都称为运行时库;本文中的运行时是指与编译器相关的运行时支持包,编译器被理解为使语言完整。运行时支持不仅提供 C 标准库函数,还可能提供为 C 程序创建环境所需的其他材料,例如调用主函数之前的初始化,或提供 CPU 缺少的算术运算的子例程。 C 编译器生成的代码需要这些。

From Wikipedia:

The term C run-time library is used on some platforms to refer to a set of base libraries, which may be distributed in dynamically linkable form with an operating system (with or without header files), or distributed with a C compiler. Another term sometimes used is libc. Not just any library is called the run-time library; run time in this context means the run-time support package associated with a compiler which is understood to make a language complete. The run-time support provides not only the C standard library functions, but possibly other material needed create an environment for the C program, such as initialization prior to the invocation of the main function, or subroutines to provide arithmetic operations missing from the CPU that are needed by code generated by the C compiler.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文