SWIG 2.0.10

SWIG in Development / Other

User Rating: 2.9 (19 votes)

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 used in a number of ways:

Building more powerful C/C++ programs. Using SWIG, you can replace the main() function of a C program with a scripting interpreter from which you can control the application. This adds quite a lot of flexibility and makes the program "programmable." That is, the scripting interface allows users and developers to easily modify the behavior of the program without having to modify low-level C/C++ code. The benefits of this are numerous. In fact think of all of the large software packages that you use every day---nearly all of them include special a macro language, configuration language, or even a scripting engine that allows users to make customizations.

Rapid prototyping and debugging. SWIG allows C/C++ programs to be placed in a scripting environment that can be used for testing and debugging. For example, you might test a library with a collection of scripts or use the scripting interpreter as an interactive debugger. Since SWIG requires no modifications to the underlying C/C++ code, it can be used even if the final product does not rely upon scripting.

Systems integration. Scripting languages work fairly well for controlling and gluing loosely-coupled software components together. With SWIG, different C/C++ programs can be turned into scripting language extension modules. These modules can then be combined together to create new and interesting applications.

Construction of scripting language extension modules. SWIG can be used to turn common C/C++ libraries into components for use in popular scripting languages. Of course, you will still want to make sure that no-one else has already created a module before doing this.

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. Specifically:

ANSI C/C++ syntax. SWIG parses ANSI C++ that has been extended with a number of special directives. As a result, interfaces are usually built by grabbing a header file and tweaking it a little bit. This particular approach is especially useful when the underlying C/C++ program undergoes frequent modification.

SWIG is not a stub generator. SWIG produces code that you simply compile and run. You don't have to fill in any stubs or write special client/server code as you do with RPC-like systems.

SWIG does not define a protocol nor is it a component framework. SWIG does not define mechanisms or enforce rules regarding the way in which software components are supposed to interact with each other. Nor is it a specialized runtime library or alternative scripting language API. SWIG is merely a code generator that provides the glue necessary to hook C/C++ to other languages.

Designed to work with existing C/C++ code. SWIG requires little, if any, modifications to existing code. For the most part, it encourages you to keep a clean separation between C/C++ and its scripting interface.

Extensibility. SWIG provides a variety of customization options that allow you to blow your whole leg off if that's what you want to do. SWIG is not here to enforce programming morality.

File Size: 7.2001953125 MB License: Open Source Price: FREE
Platform: Windows XP, Windows Vista, Windows 7
Downloads: Total: 138 | This Month: 9 Released: 2013-06-10
SWIG Similar Software

QR Code Generator SDK 2.2.3 Barcode Software Solutions    

QR Code Generator SDK is a professional and reliable solution designed for generating QR Code barcodes. The SDK package includes the following components: · SDK documentation · Dynamic-linked library · Import library for the DLL · Header files · Example of integration .... Free download of QR Code Generator SDK 2.2.3

software pick   

RISE PHP for MySQL code generator 4.4 RISE to Bloome Software    

RISE PHP for MySQL code generator The RISE PHP for MySQL code generator renders PHP source code for database access. The ... the implementation of a PHP SOAP client. RISE Code generators The RISE suit provides a range of free code generators for you to use. Database script code generators The database code generators write an incremental script .... Free download of RISE PHP for MySQL code generator 4.4

RISE PHP for PostgreSQL code generator 4.4 RISE to Bloome Software    

RISE PHP for PostgreSQL code generator The RISE PHP for PostgreSQL code generator renders PHP source code for database access. The ... the implementation of a PHP SOAP client. RISE Code generators The RISE suit provides a range of free code generators for you to use. Database script code generators The database code generators write an incremental script .... Free download of RISE PHP for PostgreSQL code generator 4.4

RISE C# code generator 4.4 RISE to Bloome Software    

RISE C# code generator The RISE C# code generator generates .NET C# source code for database access. ... SOAP/JSON web services. The source code from the code generator is compliant with the output from the SQL Server, PostgreSQL and MySQL code generators. RISE Code generators The RISE suit provides a range of free .... Free download of RISE C# code generator 4.4

RISE MySQL code generator 4.4 RISE to Bloome Software    

RISE MySQL code generator The RISE MySQL code generator generates a native MySQL script. The script incrementally ... data, entered in the model, is inserted. RISE Code generators The RISE suit provides a range of free code generators for you to use when transforming your RISE ... into software. There are two main categories of code generators: database script generators and application source code generators. .... Free download of RISE MySQL code generator 4.4

RISE PostgreSQL code generator 4.4 RISE to Bloome Software    

RISE PostgreSQL code generator The RISE PostgreSQL code generator generates a native PL/pgSQL script. The script incrementally ... data, entered in the model, is inserted. RISE Code generators The RISE suit provides a range of free code generators for you to use when transforming your RISE ... into software. There are two main categories of code generators: database script generators and application source code generators. .... Free download of RISE PostgreSQL code generator 4.4

Popular Software in Development / Other

Foxit PDF SDK ActiveX Professional 4.0.0.1918 Foxitsoftware    

Allows developers to add PDF displaying capability to their applications. Free download of Foxit PDF SDK ActiveX Professional 4.0.0.1918

Artifactory 6.12.2 JFrog Ltd.     update

Centralizes all aspects of managing software binaries. Free download of Artifactory 6.12.2

PyScripter Portable 3.6.0 Kiriakos Vlahos     update

An open-source Python Integrated Development Environment. Free download of PyScripter Portable 3.6.0

PHPEdit 5.0.0.12872 WaterProof SARL    

Best IDE (Integrated Developement Environment) under windows to work with PHP. Free download of PHPEdit 5.0.0.12872

software pick   

Android NDK x64 Revision 19 Google     update

Lets you build performance-critical portions of your apps in native code. Free download of Android NDK x64 Revision 19

software pick