Wednesday, April 24, 2013

Something about SWIG

SWIG can generate glue for about a dozen scripting languages.

Here's how how it goes together:

We generate, a standard C++ shared library,  that contains the compiled C++ routines.

SWIG reads the .i files and generates two files,
and, the python wrapper for the low level stuff. gets turned into yet another shared library is our hand coded top level glue which imports the SWIG
generated stuff plus some other python code required to make it all
hang together.

In python when you

>> from GnuRadio import * imports
... which dynamically loads it's corresponding shared lib
... which causes to also be loaded to resolve symbols

No comments:

Post a Comment