GCC 4.0,4.2和LLVM ABI兼容性 [英] GCC 4.0, 4.2 and LLVM ABI Compatibility

查看:216
本文介绍了GCC 4.0,4.2和LLVM ABI兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode(gcc 4.0,4.2和llvm)支持三种主要的编译器风格二进制兼容吗?使用最新的Xcode工具加快多库项目的速度时,应该注意什么类型的陷阱和转角情况?

Are the three main compiler flavors supported by Xcode (gcc 4.0, 4.2, and llvm) binary-compatible with one another? What kind of gotchas and corner cases should I be aware of when bringing a multi-library project up to speed with the most recent Xcode tools?

推荐答案

Clang与ABI生成的代码兼容。 Clang还包含一些较新的Objective-C ABI的实验性支持,但编译新的ABI需要标记,生成的代码可以与GCC生成的代码混合使用。

Clang is ABI-compatible with code generated by gcc. Clang also includes experimental support for some newer Objective-C ABIs, but compiling for the newer ABI requires flags, and generated code can be mixed with GCC-generated code anyway.

这篇关于GCC 4.0,4.2和LLVM ABI兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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