From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Q: What is default architecture for code produced by native compiler? Date: Wed, 25 Aug 2021 14:31:30 +0300 Message-ID: <83pmu1vjzh.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16876"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, akrl@sdf.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 25 13:32:23 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 1mIr8p-0004Ak-1W for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 13:32:23 +0200 Original-Received: from localhost ([::1]:57030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIr8n-0005fM-Mp for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 07:32:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIr83-0004o3-0q for emacs-devel@gnu.org; Wed, 25 Aug 2021 07:31:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43218) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIr81-00019s-UT; Wed, 25 Aug 2021 07:31:33 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1655 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIr81-0000G0-Hl; Wed, 25 Aug 2021 07:31:33 -0400 In-Reply-To: (message from Arthur Miller on Wed, 25 Aug 2021 03:13:49 +0200) 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:272965 Archived-At: > 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? > 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. And if you want to try that, I'd first suggest trying that when building some program with GCC.