gpt4 book ai didi

ARM : What's the difference between APCS and AAPCS ABI?

转载 作者:行者123 更新时间:2023-12-02 10:53:22 26 4
gpt4 key购买 nike

我目前正在将为 ARM 编写的编译器移植到另一个目标体系结构。我发现 ARM 存在两种不同的 ABI:APCS_ABIAAPCS_ABI

我用Google搜索并引用了ARM手册,但没有发现它们之间的区别。

然而,在编译器后端的实现中,这两种ABI的处理方式不同,并且具有单独的实现。

顺便说一句,APCS是ARM procedure Call Standard的缩写,AAPCS是ARM Architecture的Procedure Call Standard的缩写。 (他们的意思不是一样的吗?)

那么 APCSAAPCS 之间有什么区别?为什么定义两种不同的 ABI

最佳答案

来自ARM docs ,

PCS Procedure Call Standard.

AAPCS Procedure Call Standard for theARM Architecture (this standard). (current standard )

APCS ARM Procedure Call Standard(obsolete).

此外,来自同一个文档,

The AAPCS embodies the fifth major revision of the APCS and thirdmajor revision of the TPCS. It forms part of the complete ABIspecification for the ARM Architecture.

因此您可以忘记已过时的 APCS 并开始遵循 AAPCS

关于ARM : What's the difference between APCS and AAPCS ABI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10494848/

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