Hacker News new | ask | show | jobs
by zer0zzz 434 days ago
Clang has a pretty cool flag to compile objc to c. I believe it exists for Apple to port their few apps to windows (eg iTunes), but I suspect it could be used to build a pure c environment as well.
1 comments

That is very cool, I think it's `-rewrite-objc`. Presumably it still needs to be linked to the objc runtime. It says it lowers to C++ instead of C though, now I wonder what pieces cannot be implemented using pure c.
I don’t think it really works anymore, unfortunately.
It doesn't support ARC so it's not very useful.