Is it possible to obtain an intermediate C code from Objective-C?

孤者浪人 提交于 2019-11-29 07:35:54

You could use the clang rewriter to convert to C++. Not aware of a way to go to C though.

The rewriter is available via the "-rewrite-objc" command line option.

As far as I know, there is no software that preprocesses Objective-C code into intermediate C code.

But you could write your Objective-C program entirely in C by calling directly into the Objective-C runtime. The trouble is just that the code might vary between implementations or even different versions of the same runtime.

The question is, is it actually worth the trouble?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!