From AlsaProject
Jump to: navigation, search

Try building the minimal alsa library.

--disable-aload disable reading /dev/aload*
--disable-mixer Disable the mixer component
--disable-pcm Disable the PCM component
--disable-rawmidi Disable the raw MIDI component
--disable-hwdep Disable the hwdep component
--disable-seq Disable the sequencer component
--disable-instr Disable the instrument component
--disable-alisp Disable the alisp component
--with-pcm-plugins=<list> Build PCM plugins

Note that only hw plugin is important for pcm if applications will do all conversions itself.

Just quick test with:

./configure --disable-aload --disable-mixer --disable-rawmidi
--disable-hwdep --disable-seq --disable-instr --disable-alisp
strip -g --remove-section=.comment --remove-section=.note
-rwxr-xr-x 1 perex users 366562 2006-12-09 09:22

It does not look so bad, doesn't?

With mixer stuff:

-rwxr-xr-x 1 perex users 420024 2006-12-09 09:25

Question to embedded developers: The best thing is to discuss what else can be shrinked (removed from build). If embedded platform developers stay quiet, we won't care.

For example, all dynamic configuration code can be removed, too.

Somebody asked How could be removed the dynamic configuration? ( removing conf.c and confmisc.c ? ) How can i do a "fixed" alsa.conf?

One answer is to use SALSA-Library. It's source-level API compatible, but not binary-compatible with the normal ALSA library. The binary size is about 1/10 of above.

Copied from [1]

Custom Search
Personal tools