> sudo /usr/local/cris/cris-strip --strip-debug libstdc++.a
> sudo /usr/local/cris/cris-strip --strip-debug libc.a

Actually, since static libraries are built to ease debugging,
stripping it is not usually wise. If you need the information,
it is lost.
 
> When building statically (the way I do it), the results are really
> very positive.

When building statically, parts of the library are copied in your
application. So you should strip the application after the linking
phase, without touching the installed libraries used by the linker.

> Finally, my app dropped from 7645244 bytes to 1964781 bytes.

You can still strip it, as you didn't remove extra info from your own
code (only from the library).  Or you can pass "-s" to the compiler
command line to strip it while linking.

To see the real size of an application, use "size" (or "cris-size"
if you lack the binutils-multiarch package).

Hope this helps
/alessandro

Reply via email to