What is a compiler?

The compiler is a special type of computer program that converts a human readable text file into a form that the computer can easily understand. At its most basic level, the computer can only understand two things, 1 and and 0. At this level, one will work very slowly and find the information contained in the long chain of 1s and 0s incomprehensible. A compiler is a computer program that bridges this gap. The programs were also very simple, composed of a series of steps that were originally translated manually into data that the computer could understand. It was a very time -consuming task, so parts of this task were automated or programmed and the first compiler was written. This program has assembled or assembled the steps needed to perform the program step by step.

These simple compilers were used to write a more asophisticated compiler. With a newer version, more rules could be added to the compiler program to allow the human programmer to work with a more natural language. TIt made it easier to write programs and allowed more people to start writing programs. When more people started writing programs, more ideas about writing and used to create more sophisticated compilers. In this way, the compiler programs continue to evolve, improve and are easier to use.

Programs

Compilers can also be specialized. Some language structures are more suitable for a particular task than other, so specific compilers have been developed for specific tasks or languages. Some compilers are multi -stage or multiple passages . The first pass could take a very natural language and approach a computer language. The second or even the third pass could take it to the final phase, a executable file.

The transient output in a multi-stage compiler is usually called pseudo-code because the computer is not usable. Pseudo-code is very structured,such as a computer program, not free and detailed as a more natural language. The final output is called the executable file because this is what the computer is actually running or running. The division of tasks, such as this, has made it easier to write more sophisticated compiler, because each partial task is different. It also made it easier for the computer to point out where it was difficult to understand what it was required.

errors that limit the compiler in understanding the program are called errors of syntax . Errors in the way the program function is called logical errors . It is much harder to find and fix logical errors. Syntax errors are like spelling mistakes, while logical mistakes are a bit more like grammatical mistakes.

also developed programs of cross compilations. The cross compiler allows the text file to be written for one computer designed by a specific manufacturer to be compiled and run for another computer by another manufacturer. For example, a programthat was written to start on Intel computer can sometimes be compiled for starting and on a computer developed by Motorola. It often doesn't work very well. At the level at which computer programs work, computer hardware can look very different, although they may look similar to you.

Compilation

Cross differs from one computer imitating another computer. If a computer emulates another computer, it pretends to be another computer. Emulation is often slower than Cross compilation, because two programs are running at once, a program that pretends to be the second computer and running program. However, you need an obvious natural language text to work to compile Cross to work that describes a program and a computer that is sufficiently similar to the original computer on which the program can operate to run on another computer. This is not always possible, so both techniques are used.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?