1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:21:21 -06:00
go/src/cmd/ld
Russ Cox 8820ab5da9 cmd/ld: align function entry on arch-specific boundary
16 seems pretty standard on x86 for function entry.
I don't know if ARM would benefit, so I used just 4
(single instruction alignment).

This has a minor absolute effect on the current timings.
The main hope is that it will make them more consistent from
run to run.

benchmark                 old ns/op    new ns/op    delta
BenchmarkBinaryTree17    4222117400   4140739800   -1.93%
BenchmarkFannkuch11      3462631800   3259914400   -5.85%
BenchmarkGobDecode         20887622     20620222   -1.28%
BenchmarkGobEncode          9548772      9384886   -1.72%
BenchmarkGzip                151687       150333   -0.89%
BenchmarkGunzip                8742         8741   -0.01%
BenchmarkJSONEncode        62730560     65210990   +3.95%
BenchmarkJSONDecode       252569180    249394860   -1.26%
BenchmarkMandelbrot200      5267599      5273394   +0.11%
BenchmarkRevcomp25M       980813500    996013800   +1.55%
BenchmarkTemplate         361259100    360620840   -0.18%

R=ken2
CC=golang-dev
https://golang.org/cl/6244066
2012-05-30 16:26:38 -04:00
..
data.c cmd/ld: align function entry on arch-specific boundary 2012-05-30 16:26:38 -04:00
doc.go doc: various update to command documents 2012-03-09 01:31:09 +08:00
dwarf_defs.h Use future official DWARF language code for Go. 2010-11-04 08:45:25 -07:00
dwarf.c runtime: delete Type and implementations (use reflect instead) 2012-02-12 23:26:20 -05:00
dwarf.h 8l: emit DWARF in Windows PE. 2011-01-20 11:28:30 -05:00
elf.c cmd/ld: increase number of ELF sections 2012-05-31 03:06:38 +10:00
elf.h cmd/5l, cmd/ld: dynamic linking library support 2012-05-04 18:14:26 +08:00
go.c cmd/cgo, cmd/cc, cmd/ld: detect dynamic linker automatically 2012-05-05 01:54:16 +08:00
ldelf.c cmd/ld: fix Linux/ARM build 2012-05-23 11:36:24 +08:00
ldmacho.c ld: fix build on Plan 9 2011-07-25 13:45:50 -04:00
ldpe.c cmd/ld: take section symbols' value into account for PE 2012-05-23 02:27:44 +08:00
lib.c cmd/ld, cmd/6l, cmd/8l, cmd/5l: fix hidden/local symbol import for ELF systems 2012-05-23 02:32:27 +08:00
lib.h cmd/ld, cmd/6l, cmd/8l, cmd/5l: fix hidden/local symbol import for ELF systems 2012-05-23 02:32:27 +08:00
macho.c ld: fix Mach-O code signing for non-cgo binaries 2012-01-23 09:42:09 -05:00
macho.h 6l, 8l: fix Mach-O binaries with many dynamic libraries 2011-05-24 19:50:13 -04:00
pe.c ld: increase default stack size on Windows for cgo 2011-12-07 16:53:17 +03:00
pe.h 8l: emit resources (.rsrc) in Windows PE. 2011-05-25 07:53:00 -04:00
symtab.c cmd/6l: Fixes for 64-bit Plan 9 2012-05-29 12:32:42 -04:00