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: Suppressing native compilation (short and long term) Date: Thu, 29 Sep 2022 08:56:30 +0300 Message-ID: <83r0zuhgfl.fsf@gnu.org> References: <87ill8paw7.fsf@trouble.defaultvalue.org> <834jwrig5s.fsf@gnu.org> <83wn9ngvr6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16525"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rlb@defaultvalue.org, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 29 08:01:47 2022 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 1odmcE-0004BN-Sm for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Sep 2022 08:01:46 +0200 Original-Received: from localhost ([::1]:34602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odmcD-0008Dl-VG for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Sep 2022 02:01:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmXB-0006LQ-MS for emacs-devel@gnu.org; Thu, 29 Sep 2022 01:56:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35124) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmXB-0000KF-40; Thu, 29 Sep 2022 01:56:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Qn2oPG7l/8XeOxVUL5pg/zDn3bL2uOGItjwey5fVBGg=; b=R1iGr5HRbeNF 6WV2fyeuZe3m/oqsHS+JJiOxFe9UnH+QtHQGzGSPMeryAdWHisS5+fiJJQ4h6fAzOQlpMLYREAqri 9C1ZZ78sz+5Q3YK54b2wT3IR9wm2ATPq4CyaWO2RL8xXzHlTibwVZEgtHan5MwDiJG8syf+4Bzuml XB0TLqHx0Tyiy7QgH8sHdvTNELYyXf03M6XsGC3L8c60vXfnv7+eIunj7p05uP5LQe/K39JAj9hQD zezMjUK0HH06OQq0Wqcjr3OvHG+Arzm+PHgrgj7JTT3WrDdNqvPl/A8yw1uJnwNvS27eYeSlTF83/ AAr4E8D1MWv6dW/XrSdBHQ==; Original-Received: from [87.69.77.57] (port=4694 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 1odmXA-0008HW-Il; Thu, 29 Sep 2022 01:56:32 -0400 In-Reply-To: (message from Andrea Corallo on Wed, 28 Sep 2022 21:32:13 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:296445 Archived-At: > From: Andrea Corallo > Cc: rlb@defaultvalue.org, emacs-devel@gnu.org > Date: Wed, 28 Sep 2022 21:32:13 +0000 > > Eli Zaretskii writes: > > >> Yes `native-comp-deferred-compilation' AFAIK does exactly this already, > >> `native-comp-available-p' is to check if the native compiler is > >> available (not necessarily the deferred/async mechanism). > > > > But then it should disable the trampolines as well, see startup.el. > > Not in my opinion, trampolines are not deferred async compilation. > > Also as mentioned ATM is not possible to disable trampolines and have a > fully working native comp Emacs (if we assume primitives can be > redefined). I'm confused. I alluded to this part of startup.el: (when (featurep 'native-compile) (unless (native-comp-available-p) ;; Disable deferred async compilation and trampoline synthesis ;; in this session. This is necessary if libgccjit is not ;; available on MS-Windows, but Emacs was built with ;; native-compilation support. (setq native-comp-deferred-compilation nil comp-enable-subr-trampolines nil)) The last part disables trampolines, AFAIU. So what am I missing here?