]> Cypherpunks repositories - gostls13.git/commit
5l: stop using R12 as SB
authorRuss Cox <rsc@golang.org>
Sun, 17 Oct 2010 15:41:23 +0000 (11:41 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 17 Oct 2010 15:41:23 +0000 (11:41 -0400)
commit8052786e51f606ac201e92d288ed8d49069b71f4
treefe77bfd6991e66a8e1da0b144b1f19ea18cc05fc
parent77eb94c0328958dc75dc4045fbca3460ea633dbe
5l: stop using R12 as SB

Because the SB is only good for 8k and Go programs
tend to have much more data than that, SB doesn't
save very much.  A fmt.Printf-based hello world program
has  360 kB text segment.  Removing SB makes the text
500 bytes (0.14%) longer.

R=ken2, r2, ken3
CC=golang-dev
https://golang.org/cl/2487042
src/cmd/5l/l.h
src/cmd/5l/list.c
src/cmd/5l/obj.c
src/cmd/5l/optab.c
src/cmd/5l/span.c
src/cmd/5l/thumb.c
src/pkg/runtime/arm/asm.s