C++ draft
Matt Rice
ratmice@gmail.com
Tue Jun 28 17:08:00 GMT 2011
On Tue, Jun 28, 2011 at 5:21 AM, Gary Benson <gbenson@redhat.com> wrote:
> The resulting executable is slightly larger (6562 bytes from 6433).
note that these numbers are equivalent to the hello-c++1 from the
attached foo.sh shell script, which brings in a bunch of shared
libraries. I tried some other sources/linking scenerios to get an
idea of the footprint. (below is the output).
of concern is that of the *-tdep.c files:
amd64, i386, ppc, rs6000, and spu, (at least) use TRY_CATCH or throw_*
and that at least arm uses VEC
I'm not sure how far outside of *-tdep.c this stuff would propagate.
here is the output:
File: hello-c
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
File: hello-c++1
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
File: hello-c++2
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
File: hello-c++3
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
File: hello-exceptions
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
File: hello-exceptions+vector
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
File: hello-vector
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
6.3K ./hello-c
6.5K ./hello-c++1
6.3K ./hello-c++2
6.4K ./hello-c++3
106K ./hello-exceptions
166K ./hello-exceptions+vector
156K ./hello-vector
stripped
4.2K ./hello-c
4.3K ./hello-c++1
4.2K ./hello-c++2
4.3K ./hello-c++3
86K ./hello-exceptions
122K ./hello-exceptions+vector
118K ./hello-vector
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.sh
Type: application/x-sh
Size: 1511 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/archer/attachments/20110628/59ce296f/attachment.sh>
More information about the Archer
mailing list