Skip to main content

Compilers

 A Compiler is a Computer Program that performs code translation. In fact, Compiler is a Language Translator.  A high level language program forms the input to a Compiler. 

The output of a Compiler is termed as Object Code. The Compiler output may be a Binary Code. The code generated by the Compiler may be in the form of an Assembly Language Program.

_______________________

_______________________

Note: Code Translators are also called Language Processors.

_______________________

_______________________

The input to the Compiler is a source code. The source code is processed to obtain the object code. The source code is Programmer friendly. The object code may be a long string of 0s and 1s

The source code is run through the Compiler. The resultant code that is obtained has a different form. The structure of the Compiled Code reflects the transformation that is performed. 

Such transformational task of code translation is achieved by application of advanced processing techniques. Such advanced techniques are of great use.  They result in code compactness. 

Yes, the Binary Code / Assembly Language Program is a compact one. More dense than the source code.

Advanced Compilation techniques seek to make the best use of Computational resources. CPU and RAM are examples of such resources that are used by Language Compilers very justifiably.

As for example if it is required to perform repetition of instructions, only the minimum number of instructions repetitions are manoeuvred. Also the number  of instructions repeated are the least possible. 

Another thing is that the Instructions for which repetitions are required are only put inside the Program block set to repeat.

Code Compiler archives the efficiency of operation by splitting the task of translation.  The task of compilation witnesses division of labour. Such division maximizes the rate of code translation.

Several passes (scans) are performed. All the passes witness the output of the previous previous pass becoming the input to the next pass.

As for example, the output of the first pass of the Compiler becomes the input to the second pass. 

The activities performed by the Compiler are controlled by the System Software.

_________________________

_________________________

Goodbye!

Have a great day!!

_________________________

_________________________




Comments

Popular posts from this blog

Local-Area Networks

Local-Area Networks ( LANs ) are restricted to a small area. Such Networks may be established within a building. Computers that are part of Local-Area Networks are Personal Computers ( PCs ) or microcomputers. These Computers are connected to each other. Simple communication lines connect these Pers Networks bring people together. When people join  hands teamwork becomes possible. The structural composition of LANs simplifies teamwork. In other words, LAN hardware supports teams having similar processing requirements. LAN Computers readily support personalization of tasks allocated to professionals.  Office staff can work together and share information. This improves the efficiency of the entire workforce. It has been noted that here all the Networked Computers are Personal Computers. They are of equal capacity. Mostly LAN users have similar tasks. If situations allow, a user is independent to access any Computer to serve his purpose. LAN users can exercise the option of secu...

Computers - An Introduction

Computers are man made machines. They are made to work very fast. Working fast they can solve  big and small problems.  Modern science has given us these computers. They are very popular. Computers affect and change lives. They keep us happy.The happiness grows. Computers are quick and smart. Great problem solvers and simplifiers are our computers. They can do our work without stopping. Focus is on doing only what is needed. Not needed, not done.  Computers are  life-less servants. They cannot think or make decisions on their own. They are empowered to work. They are given each and every thing so that they carry out our orders. Orders are respected by computers. The manner in which computers work is wholly dependent on man.  The quality of service provided by computers is remarkable. They are loved by human beings. Computers are known for smart and quick service. Computers do not give wrong results. Correct answers are always given. Questions which are difficult...

Euclid's Algorithm

The Greatest Common Divisor ( GCD ) of  two numbers is a number. The number ( GCD ) causes division of the two numbers. This number ( GCD ) is the greatest number that is possible. This divisor partially forms the two numbers. Adding  the divisor successively may result in formation of the two numbers. One can note that when the divisor is the greatest, the division of the dividend is the sharpest. The division operation is very effective. When the Greatest Common Divisor of two numbers is considered, we think of a number that can cause division of both the numbers. Here the two numbers are unequal. The Greatest Common Divisor causes divisions of the two numbers differently. This is clear from the two different quotient values.  The GCD value is very interesting to note. It relates very well with the two numbers. The GCD of two even numbers is also an even number. The GCD of two odd numbers is an odd number. So, we can say that GCD is an abstraction of the two numbers in ...