next up previous
Next: The XASM graphical animation Up: The XASM Support Environment Previous: The XASM Support Environment

The XASM-compiler and runtime system

As already mentioned in Section 2, the XASM-compiler xasmc translates XASM source code into C-code implementing the executable version of the ASMs specified in the XASM source files. The syntax analysis part is implemented in C using ``lex'' and ``yacc'' for generating scanner and parser code. The type checking part is implemented in XASM itself using the C-interface as introduced above.

The XASM runtime system implements the core functionality of the XASM language. In here, all algorithms and data structures are realized being used to transform an ASM into an executable program. At the heart of the runtime system is the implementation of update and access functionality for ASM functions. For that, a hashing mechanism is used to provide optimized access to values of ASM functions. The runtime system also contains garbage collection facilities, which is indispensable, if ASM algorithms are used for continuous control systems, as described in [4].

Philipp Kutter 2002-03-18