From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: MPS: Please check if scratch/igc builds with native compilation Date: Tue, 21 May 2024 15:35:05 -0400 Message-ID: References: <875xv76mkj.fsf@gmail.com> <87v83756cp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35668"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , Emacs Devel , Eli Zaretskii To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 21 21:35:44 2024 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 1s9VGx-0008tK-FH for ged-emacs-devel@m.gmane-mx.org; Tue, 21 May 2024 21:35:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9VGN-0001YF-P0; Tue, 21 May 2024 15:35:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9VGM-0001Y6-J4 for emacs-devel@gnu.org; Tue, 21 May 2024 15:35:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9VGM-0007P2-85; Tue, 21 May 2024 15:35:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=GAJISlUSJgsdRa0UtP3xm8gb4+yWQJ4WL1MrEndyW7o=; b=fomRAbBOo88+M3s0ATSa TW5SrLAIO6Ud/OtESrQH+ew9A0w/Si4/SMsMvfePGaSc2tGjuRquZPq6TwhV8Czf1ejKWEJ1TtjbG 1okry5WTCQlDobbj6hPl2QLOIINzyTwyb94e7cIlThqWxFkJJV2w/QFFmoT4gUbrdSMeQjXIt7alu urlNGRIrvjCRBV97EfZFwwvcRd900OTVLDf2j+DYWyE9MP8cprlYSzbuuujnqQSW8ae8sOdD9au8p kMlngMsVoCQetV+V0Q36EweqpPWfaxvL+tt0oCdNf+miF+BVCRYxOFiWrelEnDUjBahMjeNUICwhr L4NrsYhlG+OfGA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s9VGL-0000z9-G6; Tue, 21 May 2024 15:35:05 -0400 In-Reply-To: (Andrea Corallo's message of "Tue, 21 May 2024 15:17:06 -0400") 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319465 Archived-At: Andrea Corallo writes: > Helmut Eller writes: > >> Is there some way to disable optimizations for libgccjit so that the >> native compiler isn't quite so slow? > > The following should do the job, maybe is also an interesting test to > do... > > modified lisp/emacs-lisp/comp.el > @@ -54,7 +54,7 @@ comp > "Emacs Lisp native compiler." > :group 'lisp) > > -(defcustom native-comp-speed 2 > +(defcustom native-comp-speed 0 > "Optimization level for native compilation, a number between -1 and 3. > -1 functions are kept in bytecode form and no native compilation is performed > (but *.eln files are still produced, and include the compiled code in Okay a datapoint, I did managed to bootstrap two times a native compiled Emacs with only this patch installed with no errors. But it might be related to the fact that the excuted code is simpler and less stressful to the GC, AFAIR ssa renamining (the nativecomp pass where I saw the crash initially) is heavy at consing other than computing. Andrea