Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0yCa-0007mw-A4 for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Dec 2022 05:03:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0yCY-0001Go-NA for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Dec 2022 05:03:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0yCX-0001Ge-Ol for pgsql-hackers@lists.postgresql.org; Fri, 02 Dec 2022 05:03:06 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0yCU-0003I9-J4 for pgsql-hackers@lists.postgresql.org; Fri, 02 Dec 2022 05:03:04 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5CF5C5C011C; Fri, 2 Dec 2022 00:03:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 02 Dec 2022 00:03:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1669957380; x=1670043780; bh=FPztIRMMgA LvPbiAoAy/G2i7uSWjgLtFUcI5Bn4itdc=; b=UEr8K05bjxS8sqOocrJdiDc7wN wyYWWqyr1sZ3glOtyA3zhmPUdRxzGTrSx+w3nL50S3E83euiX19QwOp4MLseRB3p XQvFuscI44Lh8WGCBQ06uBuog9cZjsoUoBirMclWeFdOQWtF9tcOgjt05yT4b5WG YYiFUpQ0IkXd+UoLRXq2VcF7MJR2GFWk/OaNKg1aBxhroLeR0KxtqXTNVkgWEzKj V8hD2xIz34jOBnYACgwR8gdXcUEp4hnubM/NmA4MCTW78cYxyuSIgG6PdRdEcSMY jvsXLH2aGtcTDHB6uiozExZ4TdszArytQRCepZNegsqtslgtN8+qPOScTtiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669957380; x=1670043780; bh=FPztIRMMgALvPbiAoAy/G2i7uSWj gLtFUcI5Bn4itdc=; b=qtYnrd1WUDD/zepgOAygidFakiiS4Jb6edpG27f9Foky i0JC+Gez5ZDQ2e2i1jqB5cP8Xs+jr0GAszbQznTg4SA4ZgyIkZTKhKgwVnOsGPqU IywSmDFHmh9V2tbEyDzuFsskAdPjH5sIte/2Rq+9QnY+g3ZvsbQWrQnnElmraTP9 wuWOymG3qO34kl+KC6n6Uv/4PUgwYctN8Us9ZLh8jeJ1fqMkCP5qrdkuK1Fut6cI MWTsQMvQ5OgHR7c9tcMEQOVQnWcUuR+lw989yj1u9f3pM+UY+iXj7oT7uyAFB9ZX /FgmWUe5i9iO9n81ScxrMlMGKPce9nDZFpiqpXK8Rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtdeigdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvvedvhfejhfejfefhkefflefh vdevffdvjefhuddtjeeludelveethffhfeekgeenucffohhmrghinhepmhhitghrohhsoh hfthdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Dec 2022 00:02:57 -0500 (EST) Date: Fri, 2 Dec 2022 14:02:54 +0900 From: Michael Paquier To: Niyas Sait Cc: Andres Freund , Ian Lawrence Barwick , Tom Lane , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers Subject: Re: [PATCH] Add native windows on arm64 support Message-ID: References: <20476.1661967233@sss.pgh.pa.us> <271611.1661998926@sss.pgh.pa.us> <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> <7ff7c416-fdfe-517f-a65c-9e5bd8ff8cec@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lmskEyLRdpPKFBo1" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --lmskEyLRdpPKFBo1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 01, 2022 at 05:53:47PM +0000, Niyas Sait wrote: > I've attached a new revision of the patch (v4) and includes following > changes, >=20 > 1. Add support for meson build system > 2. Extend MSVC scripts to handle ARM64 platform. > 3. Add arm64 definition of spin_delay function. > 4. Exclude arm_acle.h import with MSVC compiler. >=20 > V3->V4: Add support for meson build system > V2->V3: Removed ASLR enablement and rebased on master. > V1->V2: Rebased on top of master Thanks for the updated version. I have been looking at it closely and it looks like it should be able to do the job (no arm64 machine for Windows here, sigh). I have one tiny comment about this part: - USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK =3D> undef, + USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK =3D> 1, Shouldn't we only enable this flag when we are under aarch64? Similarly, I don't think that it is a good idea to switch on USE_SSE42_CRC32C_WITH_RUNTIME_CHECK all the time. We should only set it when building under x86 and x86_64. I would also add your link [1] in s_lock.h. [1]: https://learn.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics#Barr= ierRestrictions -- Michael --lmskEyLRdpPKFBo1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmOJhv4ACgkQnvQgOdby QH3usw//SUR4Vp7ezC4muQpnNcjyS73p9ZN+m9+OYjgEyn8SIqKjm+/BJtjhAZOP iZZRv63JfTAoz5bFR8YP9hCpFem9gxbhHpqgFKA4TD5kBfKubhINq46PyfB1+v4u AwGiPBcxEsguLDmZZjvceSmnO2ZTVCwpvgzJ8kbmAPLHvamG3hb2S3+WPdcuyBBk G5M6dAEg8oKuwYXrL8f+jnDkhE/LW+0sPEuHLbsmQktqPLilgGN40E7bioOGguN1 MWp5xXa6+aBDh+Eaz5beLHmSp4JMH3WcPBBf9waQ352cmQvYoQD3nJ8wRd/j0AL5 mUGSAOvqEWFqhPNmYNVaKOAVnLh7WHo5JmKsPVRULSrcjbyTpDaeO7mFw2GQ2G6x 3jfJuURVPsHXbWALzJn/Y5MYeUmS1q0BaPr2FEKqA6eajhIDJnb7vfynrYaY8mj3 JidsSKKmBdY4Og7SIzJ+gH9rYGOPen1RQnWEAW8J979sl/L2XcY1vguGjwsvzZPZ 0qz7iM3fhVjlwkW2eqSy17yO0GwF40YW09XT+OBjKK+Hy560YlPvpwunDqfdFbH8 59KwkFO9RUvABxmrEic25zmWSwMppcMWXyLue2HncTd7lZl5MYBpH0u6bGDSIVfO yjks6ecLW5ZoPVyMOtHM43L80DlFtO7568Adr+S/qH1QQh81Bb8= =7dXl -----END PGP SIGNATURE----- --lmskEyLRdpPKFBo1--