[LAD] Lightweight LV2 implementation (Was: RDF libraries)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Olivier Guilyardi <list@...>
Cc: <linux-audio-dev@...>
Date: Thursday, September 29, 2011 - 5:48 am

On Mon, 2011-02-28 at 17:24 +0100, Olivier Guilyardi wrote:
[...]

I just released serd-0.5.0[1], sord-0.5.0[2], and lilv-0.5.0[3] which
all have zero dependencies except each other and the C standard library.
All work on at least GNU/Linux (Debian Testing), Mac OS X (10.6), and
Windows 7 (under MingW), but I havn't tried any cross compiling yet.

You should be able to easily get less than 100Kb. Compiling static
libraries for 32-bit i386 with -Os I get:

16K ./sord/build/libsord-0.a
36K ./lilv/build/liblilv-0.a
28K ./serd/build/libserd-0.a

Which is 80k total. It compresses well:

8.0K ./sord/build/libsord-0.a.zip
12K ./lilv/build/liblilv-0.a.zip
16K ./serd/build/libserd-0.a.zip

Which is 36k total.

The code is not really optimized for binary size (e.g. there are many
more functions than there could be), but this seems good enough for any
reasonable application (certainly a dramatic improvement over the
several megs of Redland or GLib, anyway). Quite a bit of this code is
unused in a typical LV2 host (e.g. SerdWriter), so if you're building a
static app you can probably coax GCC into culling it down even
further[4]... if not, I could add a --read-only compile option to omit
the writing stuff which should save a bit more.

Let me know how it goes with the Android NDK, I havn't tried.

-dr

[1] http://drobilla.net/2011/09/29/serd-0-5-0/
[2] http://drobilla.net/2011/09/29/sord-0-5-0/
[3] http://drobilla.net/2011/09/29/lilv-0-5-0/
[4] http://gcc.gnu.org/ml/gcc-help/2003-08/msg00128.html

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Jörn Nettingsmeier, (Sat Feb 26, 10:37 am)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Feb 25, 7:09 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Feb 25, 7:14 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Feb 25, 7:29 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Feb 25, 8:21 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Feb 25, 8:26 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Feb 25, 8:09 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Mar 11, 11:08 am)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Mar 18, 5:06 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Mar 18, 11:44 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Thu Mar 24, 10:10 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sun Mar 27, 4:08 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Fri Mar 11, 6:40 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 4:33 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 6:25 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 6:32 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Mon Feb 28, 4:24 pm)
[LAD] Lightweight LV2 implementation (Was: RDF libraries), David Robillard, (Thu Sep 29, 5:48 am)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 5:28 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 6:19 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Giuseppe Zompatori, (Sun Feb 27, 4:04 am)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Giuseppe Zompatori, (Sun Feb 27, 12:55 pm)
Re: [LAD] Audio effects on Android, Olivier Guilyardi, (Mon Feb 28, 5:03 pm)
Re: [LAD] Audio effects on Android, Stefano D'Angelo, (Tue Mar 1, 12:53 pm)
Re: [LAD] Audio effects on Android, Olivier Guilyardi, (Tue Mar 1, 4:21 pm)
Re: [LAD] Audio effects on Android, Stefano D'Angelo, (Wed Mar 2, 7:18 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 7:10 pm)
Re: [LAD] RDF libraries, was Re: [ANN] IR: LV2 Convolution R..., Olivier Guilyardi, (Sat Feb 26, 6:44 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Mon Feb 28, 8:51 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Tue Mar 1, 12:00 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Tue Mar 1, 6:36 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Tue Mar 1, 11:24 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 1:20 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 5:34 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 6:31 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 7:17 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 7:55 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 9:27 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 10:45 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 9:15 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 10:44 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 10:00 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 11:14 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Wed Mar 2, 11:17 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Fons Adriaensen, (Wed Mar 2, 10:49 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Thu Mar 3, 10:36 am)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Thu Mar 3, 12:39 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Fons Adriaensen, (Thu Mar 3, 1:27 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Fri Mar 4, 12:53 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Fri Mar 4, 7:40 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Pedro Alves, (Fri Mar 4, 9:45 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Sat Mar 5, 12:05 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Fri Mar 4, 10:00 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Pedro Alves, (Fri Mar 4, 10:56 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Sat Mar 5, 12:07 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Fri Mar 4, 2:25 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Fri Mar 4, 7:53 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Sat Mar 5, 12:10 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Fri Mar 4, 2:40 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Fri Mar 4, 3:00 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Fons Adriaensen, (Fri Mar 4, 2:14 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Fri Mar 4, 2:17 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 11:17 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Fons Adriaensen, (Thu Mar 3, 12:03 am)
Re: [LAD] Portable user interfaces for LV2 plugins, gene heskett, (Thu Mar 3, 2:33 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Fons Adriaensen, (Thu Mar 3, 11:15 am)
Re: [LAD] Portable user interfaces for LV2 plugins, gene heskett, (Fri Mar 4, 3:06 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 10:46 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Wed Mar 2, 8:08 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 10:36 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Thu Mar 3, 12:06 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Wed Mar 2, 10:58 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 11:14 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 9:38 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Giblock, (Wed Mar 2, 10:16 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 10:49 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Giblock, (Wed Mar 2, 11:02 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Thu Mar 3, 12:27 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Thu Mar 3, 10:05 am)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Fri Mar 4, 12:06 am)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Fri Mar 4, 12:43 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Fri Mar 4, 7:28 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 11:20 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Gabriel M. Beddingfield, (Wed Mar 2, 11:09 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Chris Cannam, (Wed Mar 2, 8:44 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Wed Mar 2, 8:47 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Wed Mar 2, 1:27 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 2:11 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Wed Mar 2, 2:30 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Fri Mar 11, 11:03 am)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 4:58 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 5:25 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Paul Davis, (Wed Mar 2, 5:29 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 7:15 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 6:03 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Wed Mar 2, 3:58 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Wed Mar 2, 4:57 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Tue Mar 1, 1:13 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Tue Mar 1, 3:47 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Mon Feb 28, 9:37 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Olivier Guilyardi, (Tue Mar 1, 5:53 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Tue Mar 1, 5:55 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, Stefano D'Angelo, (Tue Mar 1, 6:01 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Tue Mar 1, 10:43 pm)
Re: [LAD] Portable user interfaces for LV2 plugins, David Robillard, (Tue Mar 1, 12:02 am)