18C5T13 Study Guide - Final Guide: Compiler-Compiler, Type Conversion, Mnemonic

18 views15 pages

Document Summary

It is a program that translates one language to another language. The language processing system can be represented as shown figure below. Macro processing: a pre-processor may allow a user to define macros that are short hands for longer constructs. File inclusion: a pre-processor may include header files into the program text. Rational pre-processor: these pre-processors augment older languages with more modern flow- of-control and data structuringfacilities. Language extensions: these pre-processor attempts to add capabilities to the language by certain amounts to build-in macros. Compiler is a translator, program that translates a program written in (hll) - the source program and translate it into an equivalent program in (mll) - the target program. As an important part of the compiler is error showing to the programmer. Programmers found it difficult to write or read programs in machine language. They begin to use a mnemonic (symbols) for each machine instruction, which they would subsequently translate into machine language.