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: pdumper on Solaris 10 Date: Tue, 10 Dec 2024 20:59:22 +0100 Message-ID: References: <8634iyf257.fsf@gnu.org> <8634iwex8q.fsf@gnu.org> <86wmg7bso1.fsf@gnu.org> <865xnrbh3r.fsf@gnu.org> <87wmg7miyf.fsf@protonmail.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="6332"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , stefankangas@gmail.com, luangruo@yahoo.com, ali_gnu2@emvision.com, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 10 20:59:43 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 1tL6OU-0001SY-8U for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Dec 2024 20:59:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL6OL-00087P-P6; Tue, 10 Dec 2024 14:59:33 -0500 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 1tL6OK-000879-16 for emacs-devel@gnu.org; Tue, 10 Dec 2024 14:59:32 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL6OE-0005ey-Fb; Tue, 10 Dec 2024 14:59:31 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso6654875e9.2; Tue, 10 Dec 2024 11:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733860764; x=1734465564; darn=gnu.org; h=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=sP/FfL4HXQ79rnhiOKjmWFua9hs1/kAgw3EvmlGnteA=; b=YG4kMTbYrOqaI60HrSwEypQrNNVlgYQ7kGaOefi8W5fyGfa8VLQvhu+TJu8huJWQLx WKGMeBx915dyiaSv0ZGgEXT93PCJszTdRUB2cM2XwHslVwzDaa0id4Upy31rlWnD9kTq IBioZs2RRF16++E74M9j9ilA7wyyiWvA4SdITf7J/+J6o2XdGObbPHbWbfV53mIbyqf3 WfeukySrN1loreSgr07dVs6wHXiovv5RA6Mp8W2x38R8+phYXxDHmOT4GVFkU2pghuzy 9AIwEx0zvoPi5a7qjKCX3SWlbgG7mIbTaRGmw+8QuV0mKN2kOl1stMJ7Tsdv7Yxg19qW QE1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733860764; x=1734465564; h=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=sP/FfL4HXQ79rnhiOKjmWFua9hs1/kAgw3EvmlGnteA=; b=ajsfEaKTIPHxD3f4dJpaiNj/xqpIq4gK6JQPLBCM3/zQ6g1VqhHhuFW9NUEOo3advu rivivAXEF5uaaOH6Jxy5jptDgaCipyHSGBo3O3iUDbrxRrGanPlZSCzM3f5Xee6EMWh5 Ct2OGNVQJgmLlIErERsi6Og/6bfueko5d28Uq+aLQY4ImNiBU0s88H/5F59b9EVz1g6A ORxk6lb6FXZsJHDuzs9eBrxw8dl7NLe11s+COH98+okH8J1jN85ELbazF6bYfMiUu7vj 9suUa3L9btlLZu+aoxbVcUClr8ePG9oSYJ2J/s9WXWEeb0up50aBulJoEF/xhTjR9JSC oIgg== X-Forwarded-Encrypted: i=1; AJvYcCXT6zZsBut7Kbe/jhPs7Y+z+jTeoBCVsr434c3Emzu1H5xGToqhjSzd/7XZ4o11e5pqJ+ektdLoPPX0LA==@gnu.org X-Gm-Message-State: AOJu0YzvzBQZr5R0qMdhPxWq41WYuJkabeROokpbSLo6M9etq2Fofk53 H22CZnzKhXNY23Co5u+sHam+rCFV3+1YmMpTRmsgleoaoSvTYOInGLXt4g== X-Gm-Gg: ASbGncsxzHj48YTUX+ui1hrCQBroKuHqtzrJkxsxtTNATRKax5U9joIpCm2XncH5ses T1mVEaE7ZM0vW/ZIPllXdeFcX+opVOcLPf2San4QzJ30a2pnWBCIvGh6TqFQH5vh/HTSew/ZLv7 DRlWLOtC/s6j05EtPgWjSvNBOOBpFh+Hgbqa3u/8DgoEmwW1tKprvv8Nax/S8NDsCW6ImhyWnRP zSEb3h/1W5rL3s7R4Yba/wMxXPVUFP2nKOU2IFmR0xhC7ZMpvF+G7s4mlnUkFt8a3m/5Hv6SqiG F0453f2gcvq86WmTSVzlEpXBHLHyWJxAaOz5VGyJOgsHxmUscov5aPJWRUg8EVs= X-Google-Smtp-Source: AGHT+IE/stf3ttsWJBLIdwMO/jJJe03HskDN50ngSA8ElDWpgFcN6HwRL/31LfXaa5VkmS0vd1dn3A== X-Received: by 2002:a5d:6c6a:0:b0:385:fc97:9c71 with SMTP id ffacd0b85a97d-3864ce895a8mr283290f8f.12.1733860763846; Tue, 10 Dec 2024 11:59:23 -0800 (PST) Original-Received: from pro2 (p200300e0b73a150089512521f002ebd0.dip0.t-ipconnect.de. [2003:e0:b73a:1500:8951:2521:f002:ebd0]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38634a3b5d0sm11334096f8f.20.2024.12.10.11.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 11:59:23 -0800 (PST) In-Reply-To: <87wmg7miyf.fsf@protonmail.com> (Pip Cet's message of "Tue, 10 Dec 2024 19:34:13 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32c.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:326311 Archived-At: Pip Cet writes: >> If a Lisp_Object looks like this >> >> 0 32 64 >> +------------------+-------------------+ >> | tag | pointer | ... | >> +------------------+-------------------+ >> >> there is a chance it could be made to work, if ugly. That's USE_LSB_TAG >> == 1. > > It does appear to work. I'm not sure how it is "ugly", to be honest, > since MPS only sees 32-bit words, and that's the tagged pointer and > 0. No changes required. I was just assuming it would end up ugly in some form. But I haven't thought about it much. WIDE_INT and 32-bits are in an SEP field for me :-). >> If it looks like this >> >> 0 32 64 >> +------------------+-------------------+ >> | pointer | ... |tag | >> +------------------+-------------------+ >> >> it gets a lot more ugly. That's USE_LSB_TAG == 0. > > Given that gcc likes storing the two 32-bit words of a 64-bit integer in > non-adjacent places on the stack, it would be quite expensive to get > this working. Yeah, that's for sure. Nightmare. > And if we decided to do that, it would become a lot more complicated to > change our tagging scheme (which we should do, some time after merging > MPS, to speed up EQ by having a "may be EQ to a different object" tag > or, ideally, bit: EQ could then be simplified to > > if (x == y) > return true; > else if (((x|y) & BIT) == 0) > return false; > > ) Hm, interesting idea. One would have to try it out of course to know, but from a gut feeling, would you say one would notice a difference? I don't have an "educated" gut feeling wrt EQ.