GCCGO added escape analysis: https://gcc.gnu.org/gcc-8/changes.html#go

DesWurstes 2018-09-14 18:20:29 +03:00
parent bcf57bccdb
commit 65cc0b70d3

@ -53,7 +53,7 @@ decisions for the gc toolchain.
Gc compiler does global escape analysis across function and package boundaries. However, there are lots of cases where it gives up. For example, anything assigned to any kind of indirection (`*p = ...`) is considered escaped. Other things that can inhibit analysis are: function calls, package boundaries, slice literals, subslicing and indexing, etc. Full rules are too complex to describe, so check the `-m` output.
* **gc:** 1.0+
* **gccgo:** not yet.
* **gccgo:** 8.0+.
### Function Inlining