什么是C ++ ABI; s [英] what are C++ABI;s

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

问题描述

什么是ABI'在C ++中

-Parag

what are ABI''sin C++
-Parag

推荐答案

5月14日,10:16 * am ,parag_p ... @ hotmail.com < parag_p ... @ hotmail.com>

写道:
On May 14, 10:16*am, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:

什么是ABI'inin C ++

-Parag
what are ABI''sin C++
-Parag



你的意思是这个吗?

http://en.wikipedia.org/wiki/Applica...nary_interface


他们充其量只是这个新闻组的外围设备,因为他们

不是语言标准的一部分。

中没有定义语言

如何连接和与OS通信?C ++的任何重要细节都没有定义。

袜子

Do you mean this?

http://en.wikipedia.org/wiki/Applica...nary_interface

They are at best peripheral to this news group, as they
are not part of the language standard. How the language
connects and communicates with the OS is not defined in
any great detail for C++.
Socks


5月14日下午4:45,Puppet_Sock< puppet_s ... @ hotmail.comwrote:
On May 14, 4:45 pm, Puppet_Sock <puppet_s...@hotmail.comwrote:

5月14日,上午10:16,parag_p ... @ hotmail.com < parag_p ... @ hotmail.com>

写道:
On May 14, 10:16 am, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:


what是ABI'在C ++
what are ABI''sin C++


你是说这个意思吗?
Do you mean this?

http:// en.wikipedia.org/wiki/Applica...nary_interface


他们是这个新闻组的最佳外围设备,因为它们是

不属于语言标准。语言如何连接

并与操作系统通信没有在C ++的任何优秀的

细节中定义。
They are at best peripheral to this news group, as they are
not part of the language standard. How the language connects
and communicates with the OS is not defined in any great
detail for C++.



他们是和他们的新闻组无关。已经有了b
为C ++定义便携式ABI的努力,至少对于特定平台而言是b
。 (我认为Itanium

架构有一个。)它是一个不变的讨论来源:为什么

我不能将与Borland编译的代码链接起来使用

Microsoft编译的代码(可能是C)?在很多方面,这是一个严重的C ++问题,这个问题没有任何

答案在这里真的很重要:如果我有一个

我必须使用的第三方库,并且使用

Sun CC编译,我不能使用g ++。 (请参阅二进制文件上的主题

比较。)这​​是所有C ++程序员在

中遇到的问题。


-

James Kanze(GABI软件)电子邮件:ja ********* @ gmail.com

Conseils eninformatiqueorientéeobjet/

Beratung in objektorientierter Datenverarbeitung

9placeSémard,78210 St.-Cyr-l''coco,France,+ 33(0)1 30 23 00 34

They are and they aren''t relevant to the newsgroup. There have
been efforts to define a portable ABI for C++, at least for
specific platforms. (I think there is one for the Itanium
architecture.) And it''s a constant source of discussion: why
can''t I link code compiled with Borland with code compiled with
Microsoft (which is possible for C)? In many ways, it''s a
serious problem with C++ that the question doesn''t have any
answers which would be really relevant here: that if I have a
third party library which I have to use, and it is compiled with
Sun CC, I can''t use g++. (See the thread on binary
compatility.) It''s an issue which all C++ programmers face at
one time or another.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l''école, France, +33 (0)1 30 23 00 34


James Kanze写道:
James Kanze wrote:

这是一个不变的讨论来源:为什么

我不能将使用Borland编译的代码与使用

Microsoft编译的代码链接(可能是C)?
And it''s a constant source of discussion: why
can''t I link code compiled with Borland with code compiled with
Microsoft (which is possible for C)?



标准化的ABI将允许更多。例如,它将允许将不同

语言的编译器创建的对象文件链接到二进制文件中(例如由
$ b创建的对象文件) $ b pascal编译器。


顺便说一下,.NET框架是不是试图做到这一点,

ie。能够用其他语言调用任何语言的库吗?

A standardized ABI would allow even more than that. For example, it
would allow linking object files created by compilers of different
languages into the binary (such as for example object files created by a
pascal compiler).

Btw, isn''t the .NET framework some kind of attempt to do exactly that,
ie. being able to call libraries made in any language from another language?


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

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