From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: native comp Date: Mon, 29 Apr 2024 10:40:44 +0200 Message-ID: References: <86le4wsj14.fsf@gnu.org> 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="33283"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: acorallo@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 29 10:41:15 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 1s1MZW-0008Tp-Ug for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Apr 2024 10:41:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1MZE-0000Q2-C4; Mon, 29 Apr 2024 04:40:56 -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 1s1MZD-0000PX-68 for emacs-devel@gnu.org; Mon, 29 Apr 2024 04:40:55 -0400 Original-Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1MZ6-0004Mc-KL; Mon, 29 Apr 2024 04:40:54 -0400 Original-Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2e01d666c88so10127511fa.2; Mon, 29 Apr 2024 01:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714380046; x=1714984846; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vqtn4pwBwB3tHdaF3zVyAQLPbyarQiHySw2SwN3S4TM=; b=CDTY1EHyboeU1iy5bZy8VKVcVMubh0Or/s9BP1Qc0z+YxhugYRDBOmX2pyTSp8pqAT Hl185MGxSyg3wp9RXd69D3qXGgqPlcQzs7gcIsa5qk+v2NaYcVbYzbksNtfHjzNZHSI8 Hza9/bGPbE6cF4WowOHCIpy1bxDGr2MZzGZ+heh5qmy4EAfDlzXlw7sBlnWOTNbgygpa S5j2XJW+Lm57sfSM/KiZR3NiySXGLyXhLeQEcbWNOADjp+YEaSuSbhZb9zhfCCjEc8lQ O/5K3IpBZTf9VlFW3nkQgweIVpesBmW2iqvRpQdu/aYpgKproGibHQFvi6CSZopLVFUl rI4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714380046; x=1714984846; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Vqtn4pwBwB3tHdaF3zVyAQLPbyarQiHySw2SwN3S4TM=; b=Gl3SvamC9PEv6t8g7CSbgx4gBITHP7Q0jicPhB7t7GBcfWkD5V1e5f9hU1/vVgI3nm //MAMUx1y4LPPhqK1PlLEiTUJyfuRz3PmoYLStLHEnEInmbI10ppNoc5Svpdfn/8mmz7 s1Ytp0RgHROLplI8cgKzfiWKFXcRFYmF+NTATJYBCEpFnFe0raWkzGt4KaVxF18R60rd lYP4popcj703rT7QcpbXfU08oRPNMh9/ted/+cKbIHKobMDNz+5UQeMaHefoGa0l3Myy hjFVAu83oaKSF7Gg6LefQ3USmVTWRjRRcVAkJsuBrADPhTk3L3p4N9RQUCRA0oJCWWbY lXgQ== X-Forwarded-Encrypted: i=1; AJvYcCUjn7USxeORgRGbtz+5t7RdtVQ8ZyzNcHduX9reRSW17iulfR75FqHScAsCdfCpDrJKEW46Gl4NW7NFVc0pzB6hkIBe X-Gm-Message-State: AOJu0YxyY5swyvKdfFmAGThl0/QBFDj7lRNXClEIEKwi9V3LZMb9IuE4 /Gn002ax7VfyG2Nr34an1FqWqVylG3I8kJvvWluHAijFcUhfVgH/KXbIOQ== X-Google-Smtp-Source: AGHT+IHbQIgdWBrebpZXfhSNuEzpkbdtwMNUkC38jbzRyeojPDB3hnkPPO9M0WZziuKNgISSLmzfqQ== X-Received: by 2002:a2e:a783:0:b0:2de:be5c:5196 with SMTP id c3-20020a2ea783000000b002debe5c5196mr7939512ljf.41.1714380045756; Mon, 29 Apr 2024 01:40:45 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a6a8.dip0.t-ipconnect.de. [79.227.166.168]) by smtp.gmail.com with ESMTPSA id c9-20020a05600c0a4900b0041b43d2d745sm15730534wmq.7.2024.04.29.01.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 01:40:45 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Mon, 29 Apr 2024 10:31:00 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x230.google.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:318332 Archived-At: Gerd M=C3=B6llmann writes: > Gerd M=C3=B6llmann writes: > >> Then, in some way Andrea sets up Lisp_Objects for what we have in the >> dylib when it is loaded and these land in data_vec. > > And that's exactly what's going on, from reading the code. > load_static_obj gets a pointer to text represention of Lisp data in the > dylib, and then uses Fread to make Lisp_Objects from that. > > Scratchign head... Hm, maybe... @Andrea: How are the Lisp_Objects created in load_static_obj referenced from the code? There must be a step that puts them into the machine code, right? Probably the "relocs" that are used there. If that's the case (and I'm almost sure), then we need to make these objects immovable. That was a nice puzzle!