gpt4 book ai didi

c++ - 为什么 x86-64 使用 IA-64 C++ ABI?

转载 作者:太空狗 更新时间:2023-10-29 20:08:31 26 4
gpt4 key购买 nike

来自 the x86-64 psABI :

9.1 C++

For the C++ ABI we will use the IA-64 C++ ABI and instantiate it appropriately. The current draft of that ABI is available at:

http://mentorembedded.github.io/cxx-abi/

为什么不设计自己的 ABI?

最佳答案

因为“Itanium”C++ ABI 被设计为通用的,或者至少是通用的。引用 the introduction :

In general, this document is written as a generic specification, to be usable by C++ implementations on a variety of architectures. However, it does contain processor-specific material for the Itanium 64-bit ABI, identified as such. Where structured data layout is described, we generally assume Itanium psABI member sizes. An implementation for a 32-bit ABI would typically just change the sizes of members as appropriate (i.e. pointers and long ints would become 32 bits), but sometimes an order change would be required for compactness, and we note more substantive changes.

短语“适本地实例化它”指的是调整安腾 psABI 假设以与 x86-64 psABI 一起使用所需的改编。

关于c++ - 为什么 x86-64 使用 IA-64 C++ ABI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53455855/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com