A compiler is a text translator into machine language that reads the source text. He evaluates it according to the syntactic construction of the language and translates it into machine language. In other words, the compiler does not execute programs, it builds them. Interpreters can not be separated from the programs that they run, compilers do their work and leave the stage. When working with a compiling language such as Turbo-BASIC, you will need to think about your programs in terms of the two main phases of their life: the compile period and the run period. Most programs will be run four to ten times faster than their interpretative equivalents. If you work on improving, you can achieve a 100-fold increase in speed. The flip side of the coin is that programs that spend most of their time on messing around with files on disks or waiting for input will not be able to demonstrate some impressive increase in speed.
Comments
To leave a comment
Programming Languages and Methods / Translation Theory
Terms: Programming Languages and Methods / Translation Theory