Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp42304pxb; Mon, 1 Feb 2021 21:37:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhwvicj18giKOSnqqXanUMFnw/Mz8M8leiEhniQCjaX/xcvxHn9fM8kJsRK2KGroxQOyyL X-Received: by 2002:a05:6402:26c9:: with SMTP id x9mr22147063edd.365.1612244244725; Mon, 01 Feb 2021 21:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612244244; cv=none; d=google.com; s=arc-20160816; b=kmNIp4XlckIShhuX5NQwbjoPz1+Bxt2BPL25PMCGc11cQninT3JqxCT8m1ijoe4d6D G6friBIC5Ny7wryQQQRd7jESNc/MvtPSX7uxcC/X5FA6ncrinuxMY8QWdSYSlp0JI/4p QrRTHSgKzMZVo0gkRJu/SdwdLtC8k2JZhFuthJVoaJqo782CnnJqrlrUX1+/IXrRT7IP 1Gsw+Y3K8pRGzRXWKKecMW7M8Ti2o1ifVtOD9m1xQTfy00DbQTLPQHPpXeGF+x+04dnR 0hTsC2Q9C1EPNlWtCBzA4+rxUZwGwtYJLi/+U9YskWZm4aq7VTRm+b37yfVYZG1ylyY0 zwaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date; bh=KxdHmLf9/YSPW9/0Z9AU55Ppy3nhGzdSv54UcfNd1Jw=; b=DK1BiLof/OI/YIxkmdmgq/UgVf1YFWeXwpPJpHZPSZ+T8xhdLAAi/EVZZV5475+0BJ 1+KNXCpX17ssKrLaxGREtHVXxvQMMo0vw9BvidT6TWHUDaDX61M6mEzrKH3epTNrHPwM mJco4r9PWMm5/R2fjegLW1tCeqA7rlIk6VKCbG2Ac6qY2SwufGIhKtGDTpTLIdq9ph3b xnNMpsvBUnMoCZFw2H8xm/ptEoux/pWJfEUxcLth646kwoq3Lt0PODudI4/m/u1E363l nVYNL1/x36sibWb0pJ6o5I+rJ9JCQWm7I6XXGzx2yAhzj8in47tlRr8IrGVe0kZZEU0i P5NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si12996700edm.154.2021.02.01.21.37.00; Mon, 01 Feb 2021 21:37:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbhBBFd7 (ORCPT + 99 others); Tue, 2 Feb 2021 00:33:59 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:49441 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231440AbhBBFdv (ORCPT ); Tue, 2 Feb 2021 00:33:51 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 1125X8jm028689; Tue, 2 Feb 2021 06:33:08 +0100 Date: Tue, 2 Feb 2021 06:33:08 +0100 From: Willy Tarreau To: Amy Parker Cc: linux-kernel@vger.kernel.org, linux-gcc@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: Alternative compilers to GCC/Clang Message-ID: <20210202053307.GB28542@1wt.eu> Reply-To: linux-kernel@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amy, On Mon, Feb 01, 2021 at 03:31:49PM -0800, Amy Parker wrote: > 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=compilername in your $MAKEOPTS). Any compilers along that > route anyone here has worked with that I could work with? If you're interested, you should have a look at TCC (tiny CC) : https://repo.or.cz/tinycc.git 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. Regards, Willy