Year: 2011
Type: dissertation
Abstract: Nowadays many larger companies have built up extensive libraries written in the system programming languages C or C++.These languages are capable of a wide variety of operations and have very fast execution times compared to scripting languages.The down-side is that the user friendliness and interactivity can become very low.Simplified Wrapper Interface Generator (SWIG) is a software development tool that integrates C/C++ modules with scripting languages to exploit the strengths of each language.The objective of this thesis is to evaluate whether SWIG can be used to wrap the Ericsson library Baseband Core Library (BCL) so that it can be used in a Python environment.The concept was proven by wrapping a turbo code class in the open source library IT++.To do this, two data conversion files were created to handle the passing of IT++ data structures between C++ and Python.If the library to be wrapped has few dependencies to other libraries and only contains standard C++ data types, then wrapping with SWIG is rather straight forward.The libraries IT++ and BCL however use IT++ defined data structures which introduces additional complexity.To decide whether it is beneficial to wrap modules with converter files and glue code one should consider the amount of time and effort that is required to write the glue codes compared to the amount of usage."Experience is what you get when you didn't get what you wanted" -Anders Hansson, quoting Randy Pausch, referencing a quote used at Electronic Arts my vector = z e r o s ( n ) ;We can also insert, remove or shift elements in a vector, or concatenate several vectors.IT++ provides an Application Programming Interface (API) that describes all classes and functions.In a similar way matrices can be created and operations performed according to the API. Turbo Code ClassOne of the more advanced classes implemented in IT++ is Turbo Codec, the class that will be wrapped in this thesis.It implements a turbo encoder and decoder which has several parameters such as the choice of decoding method, interleaver length, encoder generator vectors, number of iterations, etc.The details of these parameters will be discussed in Chapter 4.Many of the functions in Turbo Codec takes different types of Vec<Num T> as input.How these types can be passed from python to C++ are described in section 5.1.
Authors: Oskar Arvidsson Tjäder, Linh M. Tran
Institution: Chalmers University of Technology
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Keywords: SWIG, turbo codes, glue code
Open Access status: green
OpenAlex ID: W20624577
