C ++实现 [英] C++ implementation

查看:52
本文介绍了C ++实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在一本书中读过这一行:当我们要求C ++实现运行程序时,它是通过调用此函数来实现的."

我想知道"C ++实现"是什么意思,或者具体是什么.帮忙!?

解决方案

"C ++实现"表示编译器,链接器,标准库以及程序实际运行的系统.基本上,除了您的来源以外,其他所有内容.

实现实现 C ++标准的东西.

因此,本书并不是说任何特定的事情都在调用您的函数.相反,整个捆绑包或捆绑包的某些部分将确保调用 main .

实际上,这意味着编译后的可执行文件包含一些特定于系统的启动代码,后跟静态对象的初始化程序,然后是对主函数的调用.

I've read this line in a book:- "When we ask the C++ implementation to run a program, it does so by calling this function."

And I'm wondering about what "C++ implementation" means or what it specifically is. Help!?

解决方案

"C++ implementation" means the compiler plus linker plus standard libraries plus the system that the program actually runs on. Everything except your source, basically.

An implementation is something that implements the C++ standard.

So the book is not saying that any particular thing calls your function. Rather, that whole bundle, or some part(s) of it, will ensure that main is called.

In practice, this means that your compiled executable contains some system-specific startup code, followed by initializers for static objects, followed by a call to your main function.

这篇关于C ++实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆