This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: compiling app using libstdc++
- To: benjamin kosnik <bkoz at nabi dot net>
- Subject: Re: compiling app using libstdc++
- From: larsbj at lyx dot org (Lars Gullik Bjønnes)
- Date: 02 Dec 1999 17:32:03 +0100
- Cc: libstdc++ at sourceware dot cygnus dot com
- References: <3845ACF9.29167BBB@nabi.net>
benjamin kosnik <bkoz@nabi.net> writes:
| so, I'm curious. How much bigger is the binary, and have you noticed any
| execution-related oddness or slowdowns?
This is the data on the binary:
With g++ 2.95.2 with libstdc++
[larsbj@lett stdc++]# ls -l src/lyx src/lyx-stripped
-rwxrwxr-x 1 larsbj larsbj 43349198 Dec 2 04:15 src/lyx
-rwxrwxr-x 1 larsbj larsbj 3250272 Dec 2 14:15 src/lyx-stripped
[larsbj@lett stdc++]$ size src/lyx
text data bss dec hex filename
2329518 911792 66652 3307962 3279ba src/lyx
Without g++ 2.95.2 without libstdc++
[root@lett build]# ls -l src/lyx src/lyx-stripped
-rwxrwxr-x 1 larsbj larsbj 10241000 Dec 2 14:44 src/lyx
-rwxrwxr-x 1 larsbj larsbj 1796116 Dec 2 14:44 src/lyx-stripped
[larsbj@lett build]$ size src/lyx
text data bss dec hex filename
1489827 297220 61000 1848047 1c32ef src/lyx
This has been compiled with:
g++ -g -O -fpermissive
Ad. compilation. When compiling with libstdc++ the mem used by
the compiler is approx. 2-5 times larger than when compiling without.
The compilation speed is also a lot slower.
Execution speed seems to be about the same, with libstdc++ perhaps
being slightly faster.
I have not tested much, but have so far not seen any strange
bahaviour.
Also note that LyX does not excercise the library a lot, it uses
string and vector fairly heavy.
Lgb