Re: [Fresco-devel] huge so's: are they normal?
"Andy Sy" <[email protected]> Thu, 6 Mar 2003 23:36:36 +0800
| Newsgroups | gmane.comp.video.fresco.devel |
|---|---|
| Message-ID | <000c01c2e3f6$39a4b230$0100a8c0@duron12> |
Nick Lewycky wrote: > > In Fresco M1, checking out the sizes of some of the so's in the > > Berlin/modules/ directory, a lot of the generated so's are huge. > > PSDrawingKit.so for example is 14MB in size even though the sources > > are quite small (around 20k). > > That's abnormal. It's only 950k here. The largest is ToolKit.so, at 5.3Mb. Hmmm after stripping everything, my ToolKit.so ended up 604KB and the largest was libBerlin.so at 3.5mb. Diego Sevilla Ruiz wrote: > Yes, I think it's typical. What compiler are you using? It turns out > that in some versions (I don't know if this is the normal behavior) > AC_PROG_CC adds "-g" automatically if it finds the gcc compiler. Can > you check your Fresco's config.status file to see if it contains the > "-g" flag?: > > grep -e "-g" config.status > > If so, the big size can be caused by the debug flag. Also, you can check > the size without debugging information by running split on those huge > libraries. If the size decreases, you're sure it is due to the debug > overhead. Same thing happened with GCC-3.2.2, had to strip the .so's to get them within reasonable size.