From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#44238: 28.0.50; [feature/native-comp] Build trampolines for FULL_AOT builds Date: Mon, 26 Oct 2020 13:40:48 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11829"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44238@debbugs.gnu.org To: Andrew Whatson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 14:42:05 2020 Return-path: Envelope-to: geb-bug-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 1kX2l9-0002w4-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 14:42:03 +0100 Original-Received: from localhost ([::1]:36420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX2l8-0002Bo-EO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 09:42:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX2kA-0001RV-WB for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 09:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX2kA-00007B-Mh for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 09:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX2kA-0000Qn-Jz for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 09:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2020 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44238 X-GNU-PR-Package: emacs Original-Received: via spool by 44238-submit@debbugs.gnu.org id=B44238.16037196531634 (code B ref 44238); Mon, 26 Oct 2020 13:41:02 +0000 Original-Received: (at 44238) by debbugs.gnu.org; 26 Oct 2020 13:40:53 +0000 Original-Received: from localhost ([127.0.0.1]:38903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX2k0-0000QH-T3 for submit@debbugs.gnu.org; Mon, 26 Oct 2020 09:40:53 -0400 Original-Received: from mab.sdf.org ([205.166.94.33]:55708 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX2jz-0000Q5-3d for 44238@debbugs.gnu.org; Mon, 26 Oct 2020 09:40:51 -0400 Original-Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kX2jw-0003ev-Tc; Mon, 26 Oct 2020 13:40:48 +0000 In-Reply-To: (Andrew Whatson's message of "Mon, 26 Oct 2020 22:20:51 +1000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191576 Archived-At: Andrew Whatson writes: > Hi Andrea, > > In the spirit of pre-compiling as much as possible, would it make > sense to pre-compile all the trampolines when preparing a FULL_AOT > build? Hi Andrew, IMO is not worth compiling almost 1500 files for really using just a few of them. Also the compilation is realtivelly quick (~0.2s each on my machine), I guess the most is GCC/GAS startup time. Indeed this time is payed only once when the primitive is redefined the first time. That said if you want to experiment I think something like this should do the job: (mapatoms (=CE=BB (s)=20=20=20=20 (when (subr-primitive-p (symbol-function s)) (comp-trampoline-compile s)))) Ciao! Andrea