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: Thu, 26 Aug 2021 09:57:38 +0300 Message-ID: <83mtp4u1zx.fsf@gnu.org> References: <83pmu1vjzh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25726"; 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 Thu Aug 26 08:58:49 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 1mJ9Lc-0006TI-5l for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 08:58:48 +0200 Original-Received: from localhost ([::1]:56092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJ9La-0002x6-U3 for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Aug 2021 02:58:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJ9Ko-0002HA-68 for emacs-devel@gnu.org; Thu, 26 Aug 2021 02:57:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52682) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJ9Km-0003Ly-Lz; Thu, 26 Aug 2021 02:57:56 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1812 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 1mJ9Km-0000xq-85; Thu, 26 Aug 2021 02:57:56 -0400 In-Reply-To: (message from Arthur Miller on Thu, 26 Aug 2021 01:26:30 +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:273003 Archived-At: > From: Arthur Miller > Cc: akrl@sdf.org, emacs-devel@gnu.org > Date: Thu, 26 Aug 2021 01:26:30 +0200 > > > 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. Well, I suggest that you do look into the differences between the produced code, and try to measure the effect on the speed of Emacs. Btw, -O3 is not recommended, as it frequently produces a slower Emacs.