]> Cypherpunks repositories - gostls13.git/commit
cmd/5l: reduce the size of Prog and Sym
authorDave Cheney <dave@cheney.net>
Sun, 20 Jan 2013 09:14:24 +0000 (20:14 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 20 Jan 2013 09:14:24 +0000 (20:14 +1100)
commit9b568ef2b86ad383e5db9bc57723d4ce554a319e
treed07037adc09e6d9c08ac6cb6ede222704817531d
parent42c86828b17146bde52e8b804174012e99d455fc
cmd/5l: reduce the size of Prog and Sym

Prog
* Remove the unused Prog* dlink
* note that align is also unused, but removing it does not help due to alignment issues.

Saves 4 bytes, sizeof(Prog): 84 => 80.

Sym
* Align {u,}char fields on word boundaries

Saves 4 bytes, sizeof(Sym): 136 => 132.

Tested on linux/arm and freebsd/arm.

R=minux.ma, remyoudompheng, rsc
CC=golang-dev
https://golang.org/cl/7106050
src/cmd/5l/l.h