Topic :Introduction To Interpreters | Compilers | Debugger Linker | Loader | IDE

Editors For writing Code:

We Need a Tool For Writing the Code of a Program. For this Purpose, we used Editors in which we write code. We can use word Processor too for this, but word Processors have many other features like bold the text, italic, coloring the text etc. so When we save a file written in a word Processor, lot of other information including the text is saved on the Disk. For Programming Purpose, we don't need these things we Only Need simple text. Text editors are such editors which save only the text which we type. So for Programming, we will be using a text editor.



Compiler and Interpreter:

As we write in English and we know that computers can understand only 0s and 1s. so we need a translator which translates the code of our Program into Machine language. These are two kinds of translators which are known as "INTERPRETER" and "COMPILER". These translators translate our Program which is written in C++ or any other Language into Machine Language.



Interpreters:

translates the Program line by line meaning it reads one line of Program and translates it, then it reads the second line and translate it and so on. The benefit of it is that we get the errors as we go along and it is very easy to correct the errors. The drawback of the interpreter is that the Program executes slowly as the interpreter translates the Program line by line. Another drawback is that is interpreters are reading the Program line by line so they cannot get the overall picture of the Program hence cannot optimize the Program making it efficient.



Compilers:


also translate the Code written in the English language into Machine Language so a computer can understand. the compiler read the whole Program and translates it into machine language completely. The difference between interpreter and compiler is that compiler will stop translating if it finds an error and there will be no executable code generated whereas interpreter will execute all the lines before an error and will stop at the line which contains the error. So compiler needs syntactically correct Program to Produce an executable code.



Debugger:

Another important tool is Debugger. Every Programmer should be Familiar with it. The debugger is used To debug the Program i.e. To Correct the logical errors. using debugger we can control our Program while it is running. We can stop the execution of our Program at some point and can check the values in different variables, can change these values etc. In this way, we can trace the Logical errors in our Program and Can see whether our Program is Producing the correct results. This Tool is very Powerful, so it is complex too.



Linker:

Most of the time our program is using different routines and functions that are located in different files, hence it needs the executable code of those routines/functions. A linker is a tool which performs this job, it checks our program and includes all those routines or functions which we are using in our program to make a standalone executable code and this process is called Linking.



Loader:

After an executable program is linked and saved on the disk and it is ready for execution. We need another process which loads the program into memory and then instruct the processor to start the execution of the program from the first instruction (the starting point of every C program is the main function). This processor is known as the loader. Linker and loaders are the part of a development environment. These are part of system software.



IDE:

An Integrated Development Environment (IDE) is a Software Application that Provides comprehensive Facilities to computer Programmers for Software Development. An IDE Normally consists of a Source code Editor, Interpreters, Compiler, Debugger, Linker, and Loader.
Integrated development environments are designed to maximize Programmer Productivity by Providing tight-knit components with similar user interfaces. IDEs Present a single Program in which all development is done. This Program typically Provides many features for authoring modifying, compiling, deploying and debugger software.
There are so Many IDEs for C++.



Some Most Famous IDEs are.




We are Using Dev-C++ in our Course:


top 10 compiler, best IDEs, best compiler: infobrother

The following figure represents a graphical explanation of all the steps involved in writing and executing a program.



writing and executing a program.







I Tried my Best to Provide you complete Information regarding this topic in very easy and conceptual way. but still if you have any Problem to understand this topic, or do you have any Questions, Feel Free to Ask Question. i'll do my best to Provide you what you need.

Sardar Omar.
InfoBrother





WRITE FOR INFOBROTHER

Advertising






Advertisement