From ba9f0f6665273ab5202d829ae4aa0c5fa2cebb32 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Fri, 12 Nov 2021 13:10:30 -0500 Subject: [PATCH] doc/go1.18: mention register ABI on ARM64 and PPC64 For #47694. Change-Id: Ide378f4a34587027c3d84fed2126c5b9bd8f7287 Reviewed-on: https://go-review.googlesource.com/c/go/+/363694 Trust: Cherry Mui Reviewed-by: Jeremy Faller --- doc/go1.18.html | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index cc5c542746..61bb8dbbcb 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -71,12 +71,6 @@ proposal. The GOAMD64 environment variable defaults to v1.

-

PPC64

- -

- TODO: https://golang.org/cl/353969: internal/buildcfg: enable register ABI for PPC64 -

-

RISC-V

@@ -170,6 +164,25 @@ proposal.

Compiler

+

+ Go 1.17 implemented a new way of passing + function arguments and results using registers instead of the stack + on 64-bit x86 architecture on selected operating systems. + Go 1.18 expands the supported platforms to include 64-bit ARM (GOARCH=arm64), + big- and little-endian 64-bit PowerPC (GOARCH=ppc64, ppc64le), + as well as 64-bit x86 architecture (GOARCH=amd64) + on all operating systems. + On 64-bit ARM and 64-bit PowerPC systems, benchmarking shows + performance improvements of 10% or more. +

+ +

+ As mentioned in the Go 1.17 release notes, + this change does not affect the functionality of any safe Go code and + is designed to have no impact on most assembly code. See the + Go 1.17 release notes for more details. +

+

TODO: https://golang.org/cl/298611: cmd/compile: add -asan option