是否有可能获得Objective-C的中间C code吗? [英] Is it possible to obtain an intermediate C code from Objective-C?
问题描述
据我理解正确的话,除了这个事实,Objective-C语言是一个干净C严格的超集,添加OOP范式是由一组在<部分描述的功能模拟href=\"http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html\"相对=nofollow> Objective-C运行参考。
As I understand correctly, besides the fact that Objective-C language is a strict superset of a "clean" C, added OOP paradigm is simulated by a set of functions partially described in Objective-C Runtime Reference.
因此,我期待以某种方式编译的Objective-C code在中间的C / C ++文件(或许有些ASM插入)的可能性。
Therefore, I'm expecting a possibility to somehow compile Objective-C code in an intermediate C/C++ file (maybe with some asm inserts).
时一般可能吗?
推荐答案
您可以使用铛重写转换为C ++。不知道长的路要走到C虽然。
You could use the clang rewriter to convert to C++. Not aware of a way to go to C though.
重写通过-rewrite-objc命令行选项。
The rewriter is available via the "-rewrite-objc" command line option.
这篇关于是否有可能获得Objective-C的中间C code吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!