C++ 是什么意思?运行时?
C++ 运行时完成了哪些活动?
What are all the activities done by C++ runtime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
C++ 运行时完成了哪些活动?
What are all the activities done by C++ runtime?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
它处理应用程序的启动和关闭,以及它运行所需的核心服务 - 例如初始化堆栈和静态变量,以及提供堆和默认内存分配器。
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.
来自 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.