Next Previous Contents

1. Introduction

The main difference between the PASCAL version and the C version of TRACY-2 manifests itself in the fact that the C version is a library. In contrary the PASCAL version relied on the PASCAL-S compiler/interpreter developed by N. Wirth. This means that the PASCAL-S input file is replaced by a C program which is then linked with the TRACY library.

1.1 The PASCAL to C conversion

The conversion was performed utilizing the GNU p2c and f2c utility. The conversion went more or less smoothly (p2c did a good job !). The main work was spent on the reorganization of routines and data structures. Most of the routines available in the PASCAL version are still there, although some of them have slightly changed parameter lists. They are documented in section "Changed C library routines" (refer to Changed_C_library_routines ). Some routines were rewritten or added. New routines are documented in section "Added C library routines" (refer to Added_C_library_routines ). Note: some of the routines namely the wiggler routines and the SVD routine taken from LAPACK) have been translated using f2c.


Next Previous Contents