News Focus
News Focus
icon url

chipguy

09/09/03 9:24 AM

#12963 RE: DDB #12961

Some real world example (a compiled c file with some SSE2 assembly for FFT calculations):

(size in bytes)
11902 test1
11592 test1_64

The latter one is compiled for 64bit mode.


Is this the text size, text + bss, or what?

This is only one program, of rather tiny size. It proves no more
about AMD64 executable size expansion than an anecodote about
your grandfather the smoker who lived to 99 proves about the
true epidemilogical health effects of tobacco use.

This program may very well not even use pointer variables.
Or it may use only local pointer variables so they are only
allocated at run time on the stack so data space expansion
is not visible in the program size. Look here:

http://www.ucw.cz/~hubicka/papers/amd64/node4.html

In this study the size of common shared libraries go up by
15% (the text section actually shrinks a bit but this is lost
by growth in size of relocation and linkage tables etc) but
memory usage of applications goes up by about 25%.