Essay Title: 

Computer programmin language compiler or an interpreter

April 3, 2016 | Author: | Posted in engineering, technology

A computer programming language is an artificial software language which can be used to control the behavior of a machine , specifically a computer . Programming languages , just like human languages , are defined through use of the Syntactic and semantic rules to determine structure and meaning respectively . Programming languages are used to facilitate communication about the task of organizing and manipulating information and express algorithms (a finite set of well-defined instructions precisely . Some restrict the term programming language ‘ to those languages that can express all possible algorithms , and sometimes the term `computer language [banner_entry_middle]

‘ is used for more limited artificial languages (The encyclopedia of computer languages by Murdoch University Australia

Compiler

A compiler is a program (or can be defined as a set of programs ) for computer , that translates computer language written text (the source language ) into another computer language (the target language . The written text called the source code and the ultimate output called the object code . Most commonly , the output has a form suitable for processing by the other program (e .g . a linker , but it may be a human readable text

The basic reason for translation of source code is to create an executable program . The term `compiler ‘ is primarily used for programs that translates source code from a high level language to a lower level language (for instance assembly language , or machine language . This process that translates low level language to high level language is called decompiler . Further it is also called language converter , source to source translator or language translator . A basic purpose for compiler is to perform operations likewise lexing , preprocessing parsing , semantic analysis , code optimization and code generation

In a most comprehensive definition , a compiler for a language generally has several different stages , listed below as it processes the input

Preprocessing

Lexical analysis

Syntactical analysis

Semantical analysis

Intermediate code generation

Code optimization

Code generation

Most of above stages occurs during a single pass or reading of the source s . In other words , for instance , the preprocessing stage is usually reads only slightly ahead of the lexical analysis stage , which is usually one world ahead of the syntactical analysis stage (Eric Tolman , Computer Scientist

There are different ways to classify compilers according to the internal structure , input and output and runtime behavior . We can take following examples as a brief of the compiler classification

A program that translates from a low level language to a high level language is a decompiler

A program that translates between high level languages is called source to source translator , a language translator , language converter and language rewriter

Further , the output of some types of compilers might target hardware at a very low level , for instance a Field Programmable Gate Array (FGA These compilers are said to be hardware compilers since the programs they compile effectively controls the final configuration of the hardware and how it operates . There are no instructions that are executed in a sequence

A compiler for a relatively easy language written by a person may… [banner_entry_footer]

Author:

This author has published 9453 articles so far. More info about the author is coming soon.
Did you like this essay sample?

You must be logged in to post a comment.