From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: Alternative compilers to GCC/Clang Date: Wed, 10 Mar 2021 09:53:28 +0100 Message-ID: <20210310085328.GA21872@duo.ucw.cz> References: <20210202053307.GB28542@1wt.eu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Return-path: Content-Disposition: inline In-Reply-To: <20210202053307.GB28542@1wt.eu> List-ID: To: linux-kernel@vger.kernel.org Cc: Amy Parker , linux-gcc@vger.kernel.org, linux-kbuild@vger.kernel.org --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--