This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ draft


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

Attachment: foo.sh
Description: Bourne shell script


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]