Re: Alternative compilers to GCC/Clang
Pavel Machek <[email protected]> Wed, 10 Mar 2021 09:53:28 +0100
| Newsgroups | org.kernel.vger.linux-gcc,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
--Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Hello! My name's Amy. I'm really impressed by the work done to make > > Clang (and the LLVM toolchain overall) able to compile the kernel. > > Figured I might as well donate my monkey hours to helping make it run > > on other compilers as well. I haven't been able to find any that use > > the same arguments structure as GCC and Clang (read: you can pass it > > in as CC=3Dcompilername in your $MAKEOPTS). Any compilers along that > > route anyone here has worked with that I could work with? >=20 > If you're interested, you should have a look at TCC (tiny CC) : >=20 > https://repo.or.cz/tinycc.git >=20 > It compiles extremely fast, implements some subsets of gcc (a few > attributes for example), but is far from being able to compile a kernel > (at least last time I checked). Its speed makes it very convenient for > development. I made some efforts to make haproxy support it (and provided > some fixes to tcc) as it compiles the whole project in 0.5 second instead > of ~10 seconds with a modern gcc. It could probably compile a kernel in > 15-20 seconds if properly supported, and this could be particularly handy > for development and testing. For the record, yes, something that compiles kernel fast would be very very nice. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYEiJCAAKCRAw5/Bqldv6 8p11AKCDwTTMrx+W0hdAZUHUMPePkUqsMwCfecQRePV2o724Cd/lGV4I13rQfKA= =wTkl -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--