Skip to main content

Introduction — What is a compiler?

  • Chapter
Compiler Engineering Using Pascal

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 28 Accesses

Abstract

A computer programmer who writes a new program chooses one of the many programming languages available. The language is not directly understandable by his computer system so some software is needed to bridge the gap between language and computer. This software is a compiler. There is nothing magical or special about a compiler. Compiling is just a particular data processing task in which the input or data is the source text, a program written in a language like Pascal, and the output is an equivalent program, known as the object code program, suitable for running on some computer. One form of object program is a set of binary instructions for a particular computer such as the PDP11 or Motorola 68000. Even binary instructions can be regarded as a primitive language, so a compiler is in fact a simple example of a translator. Translators are a class of objects which accept input in one language and generate an equivalent output in another language. This translation could be done by hand, with pencil and paper, but it would be an incredibly tedious and error-prone task. Fortunately the translation task for computer languages is sufficiently straightforward that it can best be handled by a computer.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Copyright information

© 1988 P. C. Capon and P. J. Jinks

About this chapter

Cite this chapter

Capon, P.C., Jinks, P.J. (1988). Introduction — What is a compiler?. In: Compiler Engineering Using Pascal. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-10401-7_1

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-10401-7_1

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-47155-5

  • Online ISBN: 978-1-349-10401-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics