Re: [OT] Non-GCC compilers used for linux userspace

From: Rob Landley
Date: Thu Mar 30 2006 - 15:23:54 EST


On Thursday 30 March 2006 2:24 am, Nix wrote:
> On Wed, 29 Mar 2006, Rob Landley whispered secretively:
> > Actually according to the changelog version 0.9.21 grew support for ARM,
> > and I believe it supports some other platforms too.
>
> That's... impressive. Of course the more generality it grows the slower
> it must necessarily become,

Not if compliation speed is the primary explicit design goal from day one, and
they regression test with that in mind.

Keep in mind that the main use of tcc these days is to turn c into a scripting
language. Just start your C file with

#!/usr/bin/tcc -run

And notice that #! is a preprocessor comment line as far as tcc is
concerned. :)

> > The result was qemu, which sort of compiles machine code to machine code
> > dynamically, and which has taken up a large chunk of his time ever since.
> > (The speed of tcc development has tailed off noticeably since, but he
> > still spends a little time on it, and there are other developers...)
>
> Well, I'd rather he spent time on qemu than tcc; there are other C
> compilers but there's nothing quite like qemu (bochs doesn't work very
> well, valgrind is similar in essence but very different in operation...)

They're still sort of related. The sad part is that tcc is -><- this close to
building an unmodified linux kernel, as tccboot demonstrates. But Fabrice
seems to have gone "ooh, shiny!" off in another direction, for entirely
understandable reasons... :)

I'm sure somebody will go take a whack at it sooner or later. (I haven't got
time either.)

Rob
--
Never bet against the cheap plastic solution.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/