From: Brian G. <br...@ge...> - 2007-11-20 16:42:46
|
On Nov 20, 2007, at 5:00 AM, Richard Boyd wrote: > Yes the --disable-alldrivers will strip most things out. It would also > be a good idea to use the --disable-shared option so that you get a > single statically link player binary. Using these two options my > player binary is 1116693 bytes or 1.1 MB. I am not sure you could get > it any smaller then that. That's how I usually do cross-compiling, because having a single binary to move around is convenient. But note that statically linking the executable will not give you the smallest installation in terms of file size, because it will include code from system libraries, which are almost certainly already present on the embedded system. Also, at runtime static executables often consume more memory than necessary, because multiple programs that use the same code will each load that common code into memory, instead of using a single shared library image. And, if you're worried about disk space (and not debugging capability), you should strip all the binaries (using the 'strip'). brian. |