C ++ ABI问题列表 [英] C++ ABI issues list

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

问题描述

我已经看到了很多关于C ++如何没有标准ABI的讨论,就像C所做的一样。我很好奇,究竟是什么,问题是。到目前为止,我想出了

I've seen a lot of discussion about how C++ doesn't have a Standard ABI quite in the same way that C does. I'm curious as to what, exactly, the issues are. So far, I've come up with


  1. 姓名错误

  2. 异常处理

  3. RTTI

有关C ++的其他ABI问题吗?

Are there any other ABI issues pertaining to C++?

推荐答案

我的头顶:

C ++特定:


  • 可以找到'this'参数。

  • 如何调用虚函数

    • 即它使用vtable或其他

    • 用于实现此结构的结构布局是什么。


    • 多个模板实例

    • 未内联的内联函数。


    • 如何处理创建li>
    • 如何处理函数local的创建(如何将它添加到析构函数列表中)

    • 如何处理销毁


    • 即在main()之前或之后

    通用。


    • 参数传递位置

    • 返回值位置

    • 会员对齐

    • 填充

    • 注册使用

    • 原始类型的格式(浮点格式)

    • Parameter passing locations
    • Return value location
    • Member alignment
    • Padding
    • Register usage (which registers are preserved which are scratch)
    • size of primitive types (such as int)
    • format of primitive types (Floating point format)

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

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