Where can I find the source code for the Objective-C language? Is it open-source or is there an open-sourced implementation of it available?
A:
There is no one source code. There would be as many different versions as there are compilers for the language. They would likely be written in a low-level language such as assembly or C, and be vastly complicated. For whichever compiler you are interested in, you will need to confirm that it is open-source, which I find unlikely. Even then, it may be difficult.
Alexander Rafferty
2010-10-02 06:08:59
"There would be as many different versions as there are compilers for the language" so this would make it: one.
Lothar
2010-10-02 06:24:46
@Lothar at lest 2: gcc and clang
cobbal
2010-10-02 06:25:32
3: microsoft compiler?
Alexander Rafferty
2010-10-02 06:38:18
Nothing from Microsoft, they don't even want to invest money into good old plain C (99) anymore.
Lothar
2010-10-02 21:59:25
Well that's understandable, though the c++ compiler can also compile c.
Alexander Rafferty
2010-10-02 23:25:46
+3
A:
It really depends on what you mean by Objective-C, there are compilers, runtimes and libraries for it.
- http://opensource.apple.com/ Contains much of Apple's source code for OS X and iOS.
- you can also see http://clang.llvm.org/ for a compiler.
- GNUstep is an open source implementation of OpenStep (Cocoa).
cobbal
2010-10-02 06:19:02
A:
I think you are asking for Cocoa - and this is not open source. All you have are the header and reverse engineering tools.
Lothar
2010-10-02 06:25:27