静态分析工具来检测C ++中的ABI断点 [英] Static analysis tool to detect ABI breaks in C++

查看:226
本文介绍了静态分析工具来检测C ++中的ABI断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用C ++接口破坏DSO /共享库的二进制向后兼容性并不困难。也就是说,是否有一个静态分析工具,它可以帮助检测这样的ABI断点,如果它给出两组不同的头文件:那些DSO的早期状态和当前状态(也许DSO以及)?欢迎提供免费和商业产品建议。

It's not very hard to break binary backwards-compatibility of a DSO/shared library with a C++ interface. That said, is there a static analysis tool, which can help detecting such ABI breaks, if it's given two different sets of header files: those of an earlier state of the DSO and those of the current state (and maybe DSOs as well)? Both free and commercial product suggestions are welcome.

如果它也可以警告有害的做法,例如。

If it could also warn about bad practices, e.g. inline functions and defaulted function parameters in DSO interfaces, it would be great.

推荐答案

我假设你熟悉这个教程: 与C ++的二进制兼容性问题,如果不是阅读它!

I assume that you are familiar with this tutorial: Binary Compatibility Issues with C++, if not read it!

我听说过这个工具:
http://ispras.linuxbase.org/index.php/ABI_compliance_checker ,但从未测试或使用过,因此没有意见。

I've heard about this tool: http://ispras.linuxbase.org/index.php/ABI_compliance_checker, however never tested or used one, so have no opinion.

也可能感兴趣:使用向后兼容的ABI创建库使用Boost

这篇关于静态分析工具来检测C ++中的ABI断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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