From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id 1643C3858D28 for ; Mon, 3 Jul 2023 15:08:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1643C3858D28 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=golang.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=google.com Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b69e6d324aso72973391fa.0 for ; Mon, 03 Jul 2023 08:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golang-org.20221208.gappssmtp.com; s=20221208; t=1688396881; x=1690988881; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d3Cs4Jhnn+R8bFMPAY5p54dAR4ApStF1Akl1elJc098=; b=fodk30pERPisMkzeMgyMc/xeV3n+eMYDPK8aCgL2yEmBDme0ub2mh0bmM/wRv3gzHY ROoACwsRGPZ20JDXC0oLbw0IjVDzLOpoDzqoII3iijLxAlGZoLYRnuLsehad5qyX8V6R fmAxCvRm4y/3H7ugQjIN0GVX2WS5jLhJJ9EwY3Mhe4Gl1o1q9zu5GZV/IBWBhixBx8Uf qQhsVY2d3LXffTsf6LTdB9XqAt0BxpZ78zlk+CNKcOwq/rAzHLuNpGpAwqcZXvZxsnom P6YWUNqopJPk2TwlNCobdlMZJcAvo8EkQXcLiKGHGjl0LyE8bAQmvzfcjwWnSS7rkNib OUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688396881; x=1690988881; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d3Cs4Jhnn+R8bFMPAY5p54dAR4ApStF1Akl1elJc098=; b=iqthCK22vgyWLm+5HaXQPxDVmwi1vx/1qDMr2u4Sod8NYv3VlfJc5PK1R3Z+TUmD9K z05CEEcj34NkgJOAYgDB+pHyy8jTTjt+9mwBDMvdCpe/RO92vAzCRbufaDT9STSizFWs A8+4o/awg0VylmBq8pk7CbZHCkGeyzLpFuQG1tH9YY473tH8OVEt4QXtc8uzkFsD38PQ puWoRhvh5Fy+K20sWDuJaMpxWyDOY9a2JSlJSStBUe4VMrPYSCYdWyzW4iYVf2Df0Huc KybMrZhEFBDWtqPssg/+kjBzvNLYalU4PGRtU+ubQ2EuWWHon1C/J/zw6DB66tb1EqBs SIpg== X-Gm-Message-State: ABy/qLZD31VCztgDsp4eToL0QwxcwRniXAF9P//npTksIxqp06ch/qm8 PAAcjYxXYwItrTg3Oq/o3lytZPHlz/4K8LVfSpMHw/bWL/RDocuB3xHflVp/ X-Google-Smtp-Source: APBJJlFk2GhJ7xplwDhH+xaeLR2LUqwaT+reNu3Rg+b97a9ifzQqMrPqPtu8JpkRFognUT9ZewBlNQ7Q5JyuD5tyxzY= X-Received: by 2002:a2e:9d44:0:b0:2b6:df23:2117 with SMTP id y4-20020a2e9d44000000b002b6df232117mr3996791ljj.43.1688396880804; Mon, 03 Jul 2023 08:08:00 -0700 (PDT) MIME-Version: 1.0 References: <439affd4-11fe-de80-94c8-6fc64cbf76ec@ztk-rp.eu> <112e711791835d56cca38654f83a009cb46707d4.camel@gwdg.de> In-Reply-To: From: Ian Lance Taylor Date: Mon, 3 Jul 2023 08:07:49 -0700 Message-ID: Subject: Re: wishlist: support for shorter pointers To: =?UTF-8?Q?Rafa=C5=82_Pietrak?= Cc: "Richard Earnshaw (lists)" , Martin Uecker , "gcc@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Jun 28, 2023 at 11:21=E2=80=AFPM Rafa=C5=82 Pietrak via Gcc wrote: > > W dniu 28.06.2023 o 17:44, Richard Earnshaw (lists) pisze: > [-----------] > > I think I understand what you're asking for but: > > 1) You'd need a new ABI specification to handle this, probably involvin= g > > register assignments (for the 'segment' addresses), the initialization > > of those at startup, assembler and linker extensions to allow for > > relocations describing the symbols, etc. > > I was thinking about that, and it doesn't look as requiring that deep > rewrites. ABI spec, that could accomodate the functionality could be as > little as one additional attribute to linker segments. If I understand correctly, you are looking for something like the x32 mode that was available for a while on x86_64 processors: https://en.wikipedia.org/wiki/X32_ABI . That was a substantial amount of work including changes to the compiler, assembler, linker, standard library, and kernel. And at least to me it's never seemed particularly popular. Ian