From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sven Hartrumpf Newsgroups: gmane.emacs.help Subject: Re: Emacs 28.1 built with x32 ABI outperforms x86-64 Date: Sun, 10 Apr 2022 08:02:52 +0200 (CEST) Message-ID: <20220410.080252.204270088.hartrumpf@gmx.net> References: <20220408.185021.179167342.hartrumpf@gmx.net> <874k33trz8.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26559"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 10 08:22:31 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ndQxz-0006kr-Jk for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 08:22:31 +0200 Original-Received: from localhost ([::1]:44118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndQxy-00006R-9y for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 02:22:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndQfB-0007CV-31 for help-gnu-emacs@gnu.org; Sun, 10 Apr 2022 02:03:05 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:47115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndQf9-0003jK-2y for help-gnu-emacs@gnu.org; Sun, 10 Apr 2022 02:03:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649570579; bh=TRgMVCgqOZJnCnold96isyb8oxxq1haZ+2i45rOUOcE=; h=X-UI-Sender-Class:Date:To:Subject:From:In-Reply-To:References; b=ZYpcsCB3R8FreAuj9heRFwqpOSwBazjlevLyEy3UTwtk30EsHx6bzP/HzAH9A47hf b6FcQUgRtkPiUwlbhjBiZ53hzZaSCCiOKen1N446xf3gW30syH/h/lmAZazY4v3A5L SqInDjJalljhDRVQuqcPYLJVfkpMG6KefiGhT0LI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from localhost ([130.180.45.238]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MLQxN-1nLU2K2LX1-00IUeK for ; Sun, 10 Apr 2022 08:02:59 +0200 In-Reply-To: <874k33trz8.fsf@zoho.eu> X-Provags-ID: V03:K1:8lNF6qi1iA1fvrPlr4ejcnW5qhIZvnX79X3eF2oNsRqDq9H5TQh F+9u+/Ktder+ysMwmdBkSryH76RomPyoIiKKURiP8d3eU5uAi9dNHJkae2hm+GLULR4G6R0 /OasNZop+1IQYzuWko8XyFm43vaeJ60jPTehXcYMPYpaiuDqQf+vkr/9iI03XuopZ1b5UJK U465IAcdJwDq65zvPondA== X-UI-Out-Filterresults: notjunk:1;V03:K0:We/jIXEvNrI=:u/AZLfy9uShAWPA5zjPaM7 jVVonAuns/mibC4z2WzJAi9WSOsGxdJvG0+Q/tyd3L0C/3C1tZlkt5iIDFzvLd84JdsGLE1XK EbZH8G8QFpSEvVDU3W5vllAdSx334ERlsQy+iLsNmzO82toeKeFayyWN19J95+7HJDr0U1cbp wuiFD/XCHhHpZpruiioT3XVirhAk6hyYWB2pDPAYr4CqploWlpLYK7NIX17wrB4Hc4SoYk69f hHzns+OVLN5jFqiPL0XWx05w5vpdVxWZZ3Q8RVgOPggqTLsK5/ItjPWwrzfTERU9utIlwJyx/ A9OCHzjsXxDRIY6SMdZlL3Er6YrwOzk2MSS3PwxkKXCqboTghsyadGMxotBYfHDR1RY1ZSIg7 b1Ij7Lo7AIKDZ2HG5itWvSzMbGnRspJe10b4rKKPnWjeqXWS/r5S0JQLzZoquYxJdaj59qg0o 0Eq42o9YiSM4NwVZD391ZBtxJcV0xTsIvbY8TiVQry0oWUMRF5Sf3rYc65IJjAGSye6K1NOld JCU6xIF2jNNmvubCg6nTGk+cQvTT2gtnd3veq0whKl/T62uQbv0wjF1RpXTSGw6EpYrywk2j5 FFMD/uZRuv2QoBVEJfUtuWqOXPlfRfoiJZCxtqiuqn3X9Y/kcUvL571El4fZHwMAd8Pes/6n7 6Fds2tkQQf1L0uq3CdVtEN92laOHlvSoRd5Ohc978udzLUy4umR8JWdO0Zx5+vADy/EgfDPR0 W6Xvc07NBDv0cliz2IBVurw0RGUCHyah17XREj6SyuXgcZzn/NmwOAyeXgXTNg1n4n/oku1T Received-SPF: pass client-ip=212.227.15.15; envelope-from=hartrumpf@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136898 Archived-At: Hello. Emanuel wrote, 2022-04-08 19:17: > Sven wrote: > Yes, can you post the script (or function) that carried out > the experiment? Sure, see below. Some notes: - gccx32 is a tiny script that calls gcc in x32 mode (just passing CFLAGS to configure does not work as expected), containing: gcc-11 -mx32 -I/usr/local/include/x86_64-linux-gnux32 -I/usr/x86_64-linux-gnux32/include "$@" - dropcaches-root is s tool that avoids filesystem cache effects, simlar to a: echo 3 > /proc/sys/vm/drop_caches - I call the script emacs.install as follows: emacs.install x86-64 |& tee emacs.64 emacs.install x32 |& tee emacs.x32 To test the second line, you will need all the x32 builds that I mentioned in my first mail. --- emacs.install #!/bin/bash set -e -u -x ABI=$1 tar xf emacs-28.1.tar.gz cd emacs-28.1 if [ "$ABI" == "x32" ] ; then CC=gccx32 ./configure --prefix=/usr/local --bindir=/usr/local/binx32 --includedir=/usr/local/includex32 --libdir=/usr/local/libx32 --with-sound=no --without-dbus --without-x else # normal 64 bit CC=gcc-11 ./configure --prefix=/usr/local --bindir=/usr/local/bin64 --libdir=/usr/local/lib64 --with-sound=no --without-dbus --without-x fi make -j4 strip src/emacs dropcaches-root date -Is make check find lisp -name '*.elc' | grep -v -e '/c-by.elc$' -e 'bindat.elc' | xargs rm # grep to avoid 2 files where compilation fails with max-lisp-eval-depth error date -Is make date -Is ---