From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipv6.s8.linuxpl.com (ipv6.s8.linuxpl.com [IPv6:2a02:1778:113::201]) by sourceware.org (Postfix) with ESMTPS id C04F638A9092 for ; Tue, 15 Nov 2022 18:42:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C04F638A9092 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lach.art.pl Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lach.art.pl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lach.art.pl ; s=x; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=0IhX8A5bhr8ZRWiypai02jN2+zJT+j422Rk/4QLXTOU=; b=A IP3FCqDxYLLXE65yHC5nH1KJR2mYno4Vk3OpZKo+gdh5+2mcrr3Ls45dBvPUM33E6YGRMsRanyaNc UZmHQEVKzLRPjhs5uHwY5jtfTlJ+MkbCDDHwMayqzsEA90ll6DcZdjDNE2jmls7q1AfKsxKCFP4bE ilv5+/9c8xJaD4dZbWSyV9M+YjDzeu2lF+26Di8vX3ZCtDCdjL7P6bODxa67YlF1hNK2VDSqZ0MRx x/1huaT7Go5cuNXJ0722kezWDw5iGEqfFnuMd9cMGEe/iMeAKkfPESRTzAG1oex/04taZyb3BEr2P S4xVh64Zkos6Vw850OVErwGpOD8BH5pdw==; Received: from apn-77-112-228-225.dynamic.gprs.plus.pl ([77.112.228.225] helo=localhost.localdomain) by s8.linuxpl.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ov0tT-00HEoH-O2 for gcc@gcc.gnu.org; Tue, 15 Nov 2022 19:42:47 +0100 From: =?utf-8?B?U8WCYXdvbWly?= Lach To: gcc@gcc.gnu.org Subject: Learning hardware optimization patch Date: Tue, 15 Nov 2022 19:42:13 +0100 Message-ID: <5902985.lOV4Wx5bFT@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Authenticated-Id: slawek@lach.art.pl X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I am wonder if this will be good choice to allow gcc to generate AI data ab= out=20 best optimization approach on user computer. Yes. GCC team will provide source code for some examples and (once low=20 hardware consumption) made gcc to compile these sources with various=20 optimization patch. It will take avg run time of each patch. Of course - it= =20 will run compilation once there is many free resources on computer. Why? To allow user select --best-optimiation-speed-for-my-machine or anothe= r=20 optimization criteria, which will depends on AI data sheet. What do you think? Another idea is to allow adding feature point to program. Program will repo= rt=20 that user is using some feature. In next step, linker could made optimizati= on=20 based on this - by simply, compiles only functionality, which is used by us= er.=20 Rest functions will be put into shared objects and special code to load thi= s=20 shared object could been injected to executable. I am not very good in programming, but have had crazy ideas about lot of=20 stuff. Best regards, Lach S=C5=82awomir.