Related sites: University of Antwerp | Department of Mathematics and Computer Science

# CANT Research Group

Navigation: Precompiler

# GSL Conversion

^ TOP

## Bash scripts for automated conversion of GSL 1.6

Below we give a number of scripts to automate the conversion of GSL for use with the multiprecision library MpIeee. You need to change a few paths in the last three scripts because they are set for my current home dir.

1. convertgsl.sh : this is the main script. Run it with <original gsl dir> <target converted dir>. It will copy the directory first and then do the conversion by calling the following scripts.
2. gsl-convert-cblas.sh : this script converts the BASE and ACC_TYPE (double/float) define statements to MpIeee. It is only executed in the gsl cblas directory. The INDEX types are not changed.
3. gsl-convert-templates.sh : this converts several define statements to MpIeee in the C-style template files used by GSL.
4. precompilearith.sh : this script traverses the GSL directory recursively, calls the precompiler on the source dir and writes the output file in the target directory.
5. precompilecblas.sh : this script runs the precompiler on the cblas files with a seperate configuration file that does not convert constants.
6. precompileonedir.sh : used for an extra pass in the root directory of GSL. This script might become obsolete in the future.

^ TOP

## Conversion files used for the transcription of GSL to a multi-precision GSL version based on MpIeee.

1. mpieee.xml : conversion file for converting types to MpIeee
2. mpieee-noconst : conversion file used for conversion of the cblas directory of GSL, modified to minimize the conversion between int and MpIeee for indexing. To do this we left out the rhs rules for integer and decimal constants. This way indexing in arrays are not converted but it also implied we had to manually check if not any other important constants where skipped.