From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: MPS: nativecomp ABI Date: Sun, 07 Jul 2024 19:11:55 +0000 Message-ID: References: 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="19737"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 08 04:24:22 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 1sQe3C-0004un-Qj for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jul 2024 04:24:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQe2R-0003R7-I3; Sun, 07 Jul 2024 22:23:35 -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 1sQXIs-0000rV-3s for emacs-devel@gnu.org; Sun, 07 Jul 2024 15:12:06 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQXIq-0005B8-8d; Sun, 07 Jul 2024 15:12:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720379520; x=1720638720; bh=t1MS4isQnpohPCLYtLwyWCeVh5OjIxnchXD6aZ/KKc4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=eWCiM1AhShb00A6c2Kuv+XcVZLKCIpe+/MKQudmuKmjOKF7NHxyRxdqkmAc6K9WtB xyPJAkJcb+ZROU0y0jqvx6CrwqAS7uv+zVUyapt8tGb7uey0uthjBGqSIvNDyx+iOG LAxF39a2P0NYHHLZx3Xh2Lk1xy+umXaIYeIWDXXR4FY4jutDS/IsCT2AFrGJLe+Aiq oMnN8uh6STxLkHVFTtSp8+dQ2EBpmsb5tyrp1gVNpj08iEG+LdB6LCb1bk8Ovgmylu X4SEdwc2+p4JcqjY+WTRE1paMrGs/7/lltreGHguWbNlG7cFblAIbC/SDV6VG1yPk/ AtdGt7YhwF7kA== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: c381a4f422efb0127a0a7c9af9ed0c009275b601 Received-SPF: pass client-ip=185.70.40.131; envelope-from=pipcet@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 07 Jul 2024 22:23:33 -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:321522 Archived-At: On Saturday, July 6th, 2024 at 17:53, Andrea Corallo wro= te: > Pip Cet pipcet@protonmail.com writes: > > I'm working on scratch/igc. One thing I'd like to do is put the IGC hea= der which all objects will require (for now) into these structs: > > > > struct Lisp_Cons > > struct Lisp_Symbol > > struct Lisp_String > > struct Lisp_Float > > union vectorlike_header > > > > IIUC, this means changing the nativecomp ABI hash (which means I'll > > have to rebuild the .eln files, I think) and adjusting any nativecomp > > code which knows about the structure layouts. However, I've only been > > able to find that for Lisp_Cons and struct Lisp_Symbol_With_Pos, which > > declares its header as ptrdiff_t. Are there more, or do the others all > > use C functions for access? > > > > Things appear to work, but I'd rather not miss anything and haven't loo= ked at this code in years. > > > > Thanks! > > Pip > I believe the easiest is that you compile a .eln with > native-comp-debug >=3D 2 and have a look to the generated pseudo C. > > Indipendently to the code being compiled, on top you'll see all the > structures defined to libgccjit. Thanks for the advice. That worked for me, though I must confess I was look= ing in the wrong place for the pseudo-C code. Pip