To read all comments associated with this story, please click here.
No, because it can make LLVM complete replacement (with BSD-like licence) for gcc. And LLVM already has many advantages over gcc (link time optimizations, JIT, ...). http://www.llvm.org
Edited 2007-09-15 21:39
clang may be developed in part by Apple, but it is still a subproject of the LLVM initiative.
It lives in the University of Illinois SVN: http://clang.llvm.org/
Learn more about LLVM: http://llvm.org/docs/FAQ.html
It really would make more sense to contribute to LLVM, which is BSD compatible. I don't know if you are aware of this, but a compiler can be as extensive and complex as an entire operating system.
According to Wikipedia, Clang is just a front end to LLVM which "currently supports the compilation of C and C++ programs, using front-ends derived from version 3.4 and 4.0.1 of the GNU Compiler Collection (GCC)."
..and further...
"It is publicly available under the University of Illinois Open Source License [1], an GPL compatible[1], OSI-approved license that is very similar to the BSD license."
I find it interesting that it is based on GCC code yet it's stated as being a "potential replacement" to GCC. Compiler writing isn't an easy business, and programs compiled with GCC are themselves exempt from the GPL.
I say if you can write a better, cleaner, faster compiler then go for it, but writing a new one based solely because of licensing issues when an existing well rounded open source project exists seems a little bastardy to me.
I don't know why your comment keeps getting modded up, your assertions don't hold water.
Wrong, LLVM is not based on gcc. At all.
And?
You are implying the sole reason pcc, llvm, etc are being developed is to spite an open source project? Or the GPL? That is absurd.
GCC's codebase has decades of unwieldy code, it can be very slow, and if you have used GCC over the years you might be familiar with its code generation issues.
There is nothing 'bastardy' about writing a modern open source compiler. Ergo, Linux exists, why should anyone ever write another system kernel (for anything) when a well-rounded open source project exists?







Member since:
2005-07-06
It would be much more reasonable to contribute to clang ( http://en.wikipedia.org/wiki/Clang ), IMHO. clang (and the rest of LLVM) has BSD-like licence.
Edited 2007-09-15 21:38