SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby, and Tcl. It works by taking the declarations found in C/C++ header files and using them to generate the wrapper code that scripting languages need to access the underlying C/C++ code. In addition, SWIG provides a variety of customization features that let you tailor the wrapping process to suit your application.
SWIG is sometimes compared to interface definition language (IDL) compilers such as those you find with systems such as CORBA and COM. Although there are a few similarities, the whole point of SWIG is to make it so you don't have to add an extra layer of IDL specifications to your application. If anything, it's much more of a rapid application development and prototyping tool.
* SWIG is known to work on the following platforms :
Unix
Microsoft Windows
Macintosh
* Supported Languages
Tcl 8.0 and newer versions.
Python 1.5 and newer.
Perl 5.003 or newer.
Guile 1.3.4 and newer.
Java JDK 1.1 and newer.
Ruby.
Mzscheme.
PHP support was added in swig-1.3.11.
VISIT SWIG
0 comments:
Post a Comment