A Tcl to C compiler

  • Authors:
  • Forest R. Rouse;Wayne Christopher

  • Affiliations:
  • ICEM CFD Engineering and the University of California at Davis;ICEM CFD Engineering

  • Venue:
  • TCLTK '98 Proceedings of the 3rd Annual USENIX Workshop on Tcl/Tk - Volume 3
  • Year:
  • 1995

Quantified Score

Hi-index 0.00

Visualization

Abstract

A Tcl compiler is described, which accepts Tcl code and generates C code as ouput. Each Tcl proc is converted into a C function that can be called as a Tcl command. This code is then compiled and linked with a special libtcl.a to create an executable. This compiler has passed all the Tcl tests, and has provided a speedup for realistic computationally-intensive applications between a factor of 5 and 10, and for simpler benchmarks up to a factor of 20. In this paper, we will discuss the compiler and the issues involved with compiling Tcl code, including suggestions for future changes to the language.