Mail Archives: djgpp-workers/1999/07/20/20:27:18
> Did you see anything in your testing that would contradict the
> conclusion, namely, that configuring Binutils with a 16-byte default
> alignment of sections would not cause too much waste?
Here's one file I've been experimenting with.
test4.s:
.data
.globl _d1
_d1:
ret
.globl _d2
_d2:
ret
.text
.globl _t1
_t1:
ret
.globl _t2
_t2:
ret
.data
.globl _d3
_d3:
ret
.globl _d4
_d4:
ret
.text
.globl _t3
_t3:
ret
.globl _t4
_t4:
ret
When compiled with 2^2 alignment, the stripped object file size is 148
bytes. When compiled with 2^4 alignment, the stripped object file size
is 172. Taking out the duplicate .data and .text sections makes no
difference, like I thought might hold down the bloat. So it appears
estimated libc bloat is correct. The tests were done with BFD
assembler updated from CVS late yesterday.
Note that debugging sections have a max section alignment of 2^2, so
debugging builds won't suffer more than non-debugging builds.
Mark
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -