From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73263C433E9 for ; Wed, 10 Mar 2021 08:54:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DD3764DCC for ; Wed, 10 Mar 2021 08:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232467AbhCJIxh (ORCPT ); Wed, 10 Mar 2021 03:53:37 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:53844 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhCJIxa (ORCPT ); Wed, 10 Mar 2021 03:53:30 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 5B2821C0B80; Wed, 10 Mar 2021 09:53:28 +0100 (CET) Date: Wed, 10 Mar 2021 09:53:28 +0100 From: Pavel Machek To: linux-kernel@vger.kernel.org Cc: Amy Parker , linux-gcc@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: Alternative compilers to GCC/Clang 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" Content-Disposition: inline In-Reply-To: <20210202053307.GB28542@1wt.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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--