Apple will use LLVM
Jeff Garzik
jgarzik at pobox.com
Thu Feb 16 17:08:36 UTC 2012
On 02/16/2012 10:37 AM, Dave Jones wrote:
> On Thu, Feb 16, 2012 at 10:22:03AM +0530, Rahul Sundaram wrote:
> > On 02/16/2012 10:08 AM, Genes MailLists wrote:
> >
> > > Not to mention that the kernel devs use gcc to compile the kernel -
> > > and it most certainly puts a lot of pressure on the compiler. I suspect
> > > unless linus drops gcc as well, we'll at a minimum need to keep it to
> > > build the kernel itself.
> >
> > Not quite. LLVM can be used to build the kernel
>
> The last I heard on this, it was very basic. Parts of the kernel
> wouldn't compile/work. Including fundamental stuff, like the module loader.
> I believe it still used gcc for some parts that choked llvm too.
You cannot yet build a non-SMP kernel with LLVM, much less boot. We do
weird stuff with labels that LLVM does not support, among other details.
Bugs have been filed with LLVM for well over a year, and they are
aware of the unresolved LLVM issues preventing kernel builds.
Jeff
More information about the devel
mailing list