Re:Stallman: GPL ramifications and purpose
by jey on Friday October 07, 2011 @10:57PM
(#3086869)
Why didn't Apple just have their front-end emit GNU C with #line directives?
[ Parent
| on HN ]
Re:Stallman: GPL ramifications and purpose
by simcop2387 on Saturday October 08, 2011 @12:42AM
(#3087111)
It would have probably been far more annoying to compile to something like that. I've not programmed in Objective C but I believe that it was designed to avoid some of the issues that arose out of C++ being originally a preprocessor like that on top of C. Given that they wanted to do that, having to compile to some kind of IR, then to C, they would have likely had a much harder time getting the code optimized in any reasonable manner. I would also imagine that this would make debugging any part of the compiler that ended up producing incorrect code far more difficult to do.