OK I've got size problems with C libs and would be grateful for some
suggestions.  The problem is that my StrongARM 1100 based computer is
sitting on the end of a noisy 9K6 radio link which is only accessible for
around 45 minutes each day.  Hence when it comes to uploading the operating
system and C libs to it I really need the compressed upload package to be
significantly less than 1Mb.

Now using the following components:

binutils-2.9.5.0.22

gcc-2.95.2
gcc-2.95.2-diff-991022
gcc-fold-const.patch

glibc-2.1.2
glibc-crypt-2.0.111
glibc-linuxthreads-2.1.2

linux-2.4.0-test9
patch-2.4.0-test9-rmk1
diff-2.4.0-test9-rmk1-np3

and building an "arm-linux" toolchain I get files of the following sizes:

vmlinux                      0.3Mb

libc-2.1.2.so uncompressed   3.8Mb
libc-2.1.2.so compressed     1.0Mb

libm-2.1.2.so uncompressed   0.6Mb
libm-2.1.2.so compressed     0.1Mb

So the size of the kernel is fine but the C libs just take the piss.  I
really need the combination of libc and libm to be no more than 500Kb when
compressed and an uncompressed footprint of really no more than 1Mb.
Although the uncompressed footprint is if necessary negotiable.

So my specific questions are therefore something like this:

1. If I only require fairly basic functionality from the Clibs (Eg. malloc,
file handling, forking, maths functions and few other things) then is it
possible (easy?) to rip stuff out of glibc to reduce its size?

2. Are there alternatives to glibc which compile as dynamic libs for the arm
linux kernel which could solve my size problem.  For example is it possible
to compile newlib as a dynamic lib for arm-linux (I've tried and haven't had
much success), and if so does it have any size benefits?  What about
uC-libc? (foobar)-libc? All suggestions appreciated.

So basically what options do I have?

Cheers,

Richard Lancaster

--
Email : [EMAIL PROTECTED]
WWW   : http://www.carrotworks.com/veg/
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message and are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly prohibited.

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to