mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
1ac637c766
commit
ed03dab853
2 changed files with 31 additions and 11 deletions
|
|
@ -610,6 +610,12 @@ type Link struct {
|
|||
Version int
|
||||
Textp *LSym
|
||||
Etextp *LSym
|
||||
|
||||
// state for writing objects
|
||||
Text *LSym
|
||||
Data *LSym
|
||||
Etext *LSym
|
||||
Edata *LSym
|
||||
}
|
||||
|
||||
// The smallest possible offset from the hardware stack pointer to a local
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue