From ba9f0f6665273ab5202d829ae4aa0c5fa2cebb32 Mon Sep 17 00:00:00 2001
From: Cherry Mui GOAMD64
environment variable defaults to v1
.
- TODO: https://golang.org/cl/353969: internal/buildcfg: enable register ABI for PPC64 -
-@@ -170,6 +164,25 @@ proposal.
+ 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