From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Q: What is default architecture for code produced by native compiler? Date: Thu, 26 Aug 2021 01:26:30 +0200 Message-ID: References: <83pmu1vjzh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 26 01:27:18 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJ2Id-0009ls-R1 for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 01:27:17 +0200 Original-Received: from localhost ([::1]:53644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJ2Ib-0005yD-Vk for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 19:27:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ2I5-0005Fp-5G for emacs-devel@gnu.org; Wed, 25 Aug 2021 19:26:41 -0400 Original-Received: from mail-oln040092075038.outbound.protection.outlook.com ([40.92.75.38]:6433 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ2Hz-0005Bc-4h; Wed, 25 Aug 2021 19:26:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hCoXkkd5MLTzuJ5KMahlGBidozol6u7Fp2vg9lKPCal1fnqp/tyrtf1/rFbwCKGQkcMxQ1sbw3OyhQjRGJevOJUV1XMAcj5F98nqwz0J9g2CgGdznHMvN5ZJkxTWOaRWOTcBpbZ6EMKeU4Flp/oOalBYGMvKzhh9pwfJSxFm4roethyywEFz/r5Wpuu0ADIGQwdy/IKKKPg5HXk/RXoVSvich60P9+wTgvFi4wKtuAv57NCQYOKAq+mSb6JXhQ+d4Ju9NRjoo9El94dt3Lyu82/DITyGIvqN41CLUYytHb0RdTPZZy4ey/KdnRX32CPms6q6dz6tf1etT6SJLQaABQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=96oe4Ilz6ELQkOw08zquzLr0lJnOpc1DKfU9KSkHUO0=; b=bVw5UYOMXpjHyTGlggc8byMUo/EBvFJDxL6BoowPyKbWKOkHxa7sz+9TfSXLZFt8Qaca6T5kao4SWwADumJcoDDBBpTNNE/iTr/ZUcSvzGE3+9m9QiAIZW1oG5hvC/KKLMmBi30hctKy2TX/ZddNRZR4wrpaDW5IubXSZOpzJjElTQEX+SjVKl22ClunRD0h55DhLoXD1qmSjmqpaIPDPK5x2vDAjekPCAZ6ZqT1S3NYihikTh/zl0i+YWdQDXX1IgeLHWAi26W2PO/ZQHD0IhjYkyGVbAXoOrQvfVGgnjHg7J6um1OGeYvxg1QJU7WW4t/Gjy+jodMr5zCvT7P8gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=96oe4Ilz6ELQkOw08zquzLr0lJnOpc1DKfU9KSkHUO0=; b=BHWaIPlPxz0tbySqTJgrXQkMYoUfu74QTF0wZzvBGGdqnG4+tCVg8knMEckaVjrWzcK9QoGwLjFbq5xTMHVGr+ofKJiVWAvBVWIjZ1hbZqwHPNF4jq2woVK+yPuEroqfaqbPYNEtY9sdJd9N6llTXsBIDz5Ph4xppROtOaFNby7wIFthk/CKG4zRAW6yiduKZxB2FF24l2A0RrhMicaGiwvIyUauLvgdMAv5pCTKqodysGHL8XlBaJuFWucXLbQ9BtszZXr0hdW405pxsaNOuM/yL5b5tBtT+GHUmVpOfWpjPCoQatZ6H1uENlCupOg6wudmLOWEbnZGRMqPQQUKMg== Original-Received: from DB3EUR04FT061.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::48) by DB3EUR04HT066.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17; Wed, 25 Aug 2021 23:26:31 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0c::43) by DB3EUR04FT061.mail.protection.outlook.com (2a01:111:e400:7e0c::72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 23:26:31 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:9F13C74238A3B1A63E75BDA8D26E764444D55FEA3F020954A681CB64236FA55A; UpperCasedChecksum:A58CB804AD87D06EA870CEF9112BEACEF8DD2623A92D01BBF8FDA25FBFA0B0E5; SizeAsReceived:7615; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b483:471e:6dc2:12ae]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b483:471e:6dc2:12ae%9]) with mapi id 15.20.4436.025; Wed, 25 Aug 2021 23:26:31 +0000 In-Reply-To: <83pmu1vjzh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Aug 2021 14:31:30 +0300") X-TMN: [A4rqfWxdWnnaDEMn3Bha+iVixr+tLjwM] X-ClientProxiedBy: AM6PR04CA0038.eurprd04.prod.outlook.com (2603:10a6:20b:f0::15) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <871r6h3y3d.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR04CA0038.eurprd04.prod.outlook.com (2603:10a6:20b:f0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 23:26:30 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b48cb18b-b4e4-44d8-174b-08d9681fc519 X-MS-TrafficTypeDiagnostic: DB3EUR04HT066: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SX8eI5QPk/gZgHPg+K9v8RKcxwHYWxhNId0cY3HQPVPVqUW+B0TZiG+VhC3+u+Lsa1Izf4L15otEPuWgx9keHnAeO29ez0Dr1Ea2QH5rfLCo7PYWPSCZCEjz+Cc5uFbVzvQ+5TCiTziAaeBV+b7f2QimnZd3ZLzCuex2OvqnK0ipKbe1TJ6qb3zjM7Y0h8TpukDf/YV77gk1uRSg0V8/rH8u8k8xPVbiHS/IFNa5bbE9tMbh11b0G2N9jErhd3f2MtQ1AOFtzqZ99h0uuYMz/EWpK+flzjSt4uR9tqQEM43X+5cEoLlPMlkIihMXnWm39XsJtEM86evXoM3y9Dd2b0FuAih/24pYFRr8u7I0g94OCdFxwHSyhnMxxbOrpzpb4QceN+t/uAs0erSZLiIjSek1hjz7L27A1Q/HMrnwtVEq7at5IyK1sUkmd3QIgamn X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Pco6SP8by3ZFSGYGHFwj/OriQd5KoVVMM9GeftVXSjRJt/F0Sz4IJX4OAXtp1f/SxyjssHB/m1jcQQ5fHl+yZxPs9CA5WKq0dJh2q108bdgn42HfIWbzpmlrerwEM27EBNnXSn3zJAa0Fft9pPZaDw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: b48cb18b-b4e4-44d8-174b-08d9681fc519 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 23:26:31.3340 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT061.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT066 Received-SPF: pass client-ip=40.92.75.38; envelope-from=arthur.miller@live.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272995 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Date: Wed, 25 Aug 2021 03:13:49 +0200 >> Cc: emacs-devel@gnu.org >> >> >> If it is generic, do we have option to pass in arch and cpu flags? >> > >> > No we don't, even if we could expose it using >> > 'gcc_jit_context_add_command_line_option' for non obsolete versions of >> > GCC. >> >> Allright, is there any interest to expose this? :-) >> >> We could have a defcustom in comp.el, either some boolean like: >> "native-comp-prefer-host-cpu" > > What's wrong with using native-comp-driver-options? > > I'm also curious why you want to mess with that. Do you use the > equivalent GCC switches when compiling Emacs? If so, why? Yes, I do, I compile Emacs with -O3 -march=native and -mcpu=native Hopefully gcc will emit some AVX instructions where possible. I haven't dissasembled Emacs binary so I don't know how big is difference between generic and native. >> To be honest, I have no idea if there is much if anything to win in speed in elisp context, >> between generic and skylake > > My guess would be nothing. Probably. Depends on the problem and data I guess.