Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp727595pxb; Tue, 2 Feb 2021 16:52:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrmjXSIutxcSifDNJL/vo26KQ+9Icg+mjedNiaIAVGi7Nbo+Cil346Ds1MEAUY6QxxdMDw X-Received: by 2002:aa7:c6cc:: with SMTP id b12mr651232eds.67.1612313573562; Tue, 02 Feb 2021 16:52:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313573; cv=none; d=google.com; s=arc-20160816; b=bkvyjgspNqxrJGddkx6NBckOlAmVkbbZVqggaxIZgLzMwPO4fDK9eKfb7LjAqLncDL c1bE8Uf/EGZs4946ryfLCFb/Q8W7Ubm1nRy7wG09xluNh5YG1AL5yeoWscWWPgJ4fpNN 6l1y863o0jlYHDPaDg4QgwAsk/MuYXXsNlZ+twTxR5uq5H9fzEDqndU0ZW3n+zBo3RUE 7Qbpm02oKi6ri5I809fZT2frk8KYUecUQy63gYKCrX2xCsc98m9HjKrlT1ON0AMJo7L9 GUSUVyLltpDsYh4tqB7gFprY5Beaiq7ai3phuFM2tFGt8xfQV95h9dRSskkrRtq8L/Wz 1TVg== 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=V3netvdv7NVb924jRDknHiri6+5g1dY4bbsNMJ1mxDQ=; b=LrzoT6aGC93l9nZaAgB6IOZaZ0PRlswjkotlHTjZU9zByCXc9ZOMk4VzciA62FOiex Tjc/j6h2bcT2jntW8Ff9yipFVsv7A9DahRd7NqxrVKYfc+Jurt+bBUZ19cR06T4DDeej jT8VCFaJb2PxSBUPSobcr2kbQ3qgyMHnQUM+hIqojdkUvmbU+X0vWkga1RcqgRp+xxNm nvMAIA+Fb+LIX71mOaMsjMArAERFvZJbqmiaB5qjiskghmNtQl/jGWP+SYc3vrlK2W2w pV2KaXcsDq+BYXN/LIxqctVr7GxxBnmormU6Je+a+PwUvz8o9mRgo4JV/sORqWhPdbzK t62w== 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 o15si296732ejx.665.2021.02.02.16.52.29; Tue, 02 Feb 2021 16:52:53 -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 S234014AbhBBVBv (ORCPT + 99 others); Tue, 2 Feb 2021 16:01:51 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:49446 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232563AbhBBVBd (ORCPT ); Tue, 2 Feb 2021 16:01:33 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 112L0dpN029850; Tue, 2 Feb 2021 22:00:39 +0100 Date: Tue, 2 Feb 2021 22:00:39 +0100 From: Willy Tarreau To: Borislav Petkov Cc: Amy Parker , linux-kernel@vger.kernel.org, linux-gcc@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: Alternative compilers to GCC/Clang Message-ID: <20210202210039.GB29751@1wt.eu> Reply-To: linux-kernel@vger.kernel.org References: <20210202053307.GB28542@1wt.eu> <20210202201920.GA18106@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202201920.GA18106@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 09:19:20PM +0100, Borislav Petkov wrote: > On Tue, Feb 02, 2021 at 11:11:32AM -0800, Amy Parker wrote: > > On Tue, Feb 2, 2021 at 8:26 AM Amy Parker wrote: > > > > It compiles extremely fast, implements some subsets of gcc (a few > > > > attributes for example), but is far from being able to compile a kernel > > > > > > Well, we'll see what I can do with that. :) > > > > Well, just installed it and tried building the kernel. Fails every file. :) > > > > It's definitely something to work towards - but I don't know if kernel > > advancements requiring newer GCC versions will go slow enough to allow > > TCC improvements to arise. This isn't just something like with Clang > > where a few tweaks to files and to Clang itself did the trick. > > Maybe this'll help you find something to do: > > https://www.youtube.com/watch?v=iU0Z0vBKrtQ > > Yes, it would be lovely to be able to compile the kernel with tcc but it > is not going to be trivial. In any case there will always be numerous limitations, but at least being able to perform the basic build check with limited options could save quite some time to many developers. Using gcc once the tcc-based "typo check" passes would already be a nice start. Getting the kernel to boot would indeed be a huge step forward! In haproxy we can only build with threading disabled and it works slowly but sufficiently for basic tests and printf- based debugging. It's convenient for bisecting certain bugs. Thanks for the video Boris, I wasn't aware of it, definitely interesting! Willy