linux - Armv5l Cross compiling static file size differences -


i have been working on getting small staticly compiled program arm.

i have staticly compiled 2 different compilers

https://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv5l.tar.bz2 (cross-compiler-armv5l/bin/armv5l-gcc)

and

gcc-arm-linux-gnueabi

now, question is, why gcc-arm-linux-gnueabi compile program on 400kb , uclibc binaries compile program 30kb?

this huge size difference , wanting compile in armv7l can't find binaries ulibc has. there way cross compile straight gcc create same effect uclibc binaries.

these flags use: -s -o2 -static

if point me in right direction how cross compile gcc isn't inflating binary 10 times size helpful. thanks!


Comments