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: native comp Date: Thu, 02 May 2024 06:29:58 -0400 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="40204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org, Helmut Eller To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 02 12:31:01 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 1s2TiO-000AEa-QZ for ged-emacs-devel@m.gmane-mx.org; Thu, 02 May 2024 12:31:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2Thh-0007Ui-2V; Thu, 02 May 2024 06:30:17 -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 1s2The-0007UD-Uw for emacs-devel@gnu.org; Thu, 02 May 2024 06:30:14 -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 1s2Thd-0006je-Kd; Thu, 02 May 2024 06:30:13 -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=2h4oxpMCDWNNsfyVVgHd7wo9gggBf9ZI0c1PNAwuMaA=; b=iY8ZdvKO203ZJY0G9sWI pbsavgq0iVODr4miuxDWZs1yhVPvUbZlnQAtD8zSDwsS1tGRTiQ2lK1tozc1/QFUyQ5R1lwGsE4Qk dEZi3sXnWo2Q6gC59XoXK+fyPNKhF62h9t6PzYaVoS5IcYaJ7xeI8J1usOKTBbKNaACr/ZN8ouGL9 MsBJJBICt3Dg6LedErgWiiKPqm0oIGLVyYU7JQIoKx9kbjnYaD65XtKO3J1UOQwgM33mkjAkrTDYI vbWcWPuTyHuZKHookfiV8MkQ/2vsdQC6/4akgaHVfH0u5nEu+aIqrUrUqDfBRKcdN7Hs3Xg/aUCJH 55troVPK4EAvmg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s2ThP-0000uE-CC; Thu, 02 May 2024 06:30:02 -0400 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 02 May 2024 08:39:26 +0200") 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:318561 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > > Hello Andrea, > > I have a question that probably only you can answer quickly :-). > > In the generated code we have things like > > struct Lisp_X *[227] d_reloc; > > I would like the get the size of that array (and others that are > similar), ie. I would like to get the 227 above, and if possible without > relying on anything like the length of the array returned from > load_static_obj or computing the size from addresses like &sym1 - &sym2. > > Is that possible? Is it somewhere in the C being emitted? > > TIA Hi Gerd, I don't think it's emitted in the eln, should be added or some other way as to be used. Andrea