]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: separate code layout from object writing
authorRuss Cox <rsc@golang.org>
Tue, 5 Jan 2016 14:27:40 +0000 (09:27 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 14 Jan 2016 01:51:27 +0000 (01:51 +0000)
commited03dab85384c156d7c222890ca13d1af3f69b4b
treeec47c7084142ae12cef2d1ac5abe65223f49e036
parent1ac637c7667bb5cac35bb72b5a27052a9eacd925
cmd/internal/obj: separate code layout from object writing

This will allow the compiler to crunch Prog lists down to code as each
function is compiled, instead of waiting until the end, which should
reduce the working set of the compiler. But not until Go 1.7.

This also makes it easier to write some machine code output tests
for the assembler, which is why it's being done now.

For #13822.

Change-Id: I0811123bc6e5717cebb8948f9cea18e1b9baf6f7
Reviewed-on: https://go-review.googlesource.com/18311
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/objfile.go