Monday, December 21, 2015

What is a compiler?


   >>> A computer cannot understand the spoken or written language that we humans use in our day to day conversations and likewise, we cannot understand the binary language that the computer uses to do it's tasks.

   >>> It is therefore necessary for us to write instructions in some specially defined language  in this case C++, which we can understand then have that very precise language converted in the very terse language that the computer can understand. This is the job of the compiler.

   >>> A C++ Compiler is itself a computer program whose only job is to convert the C++ program from our to form to a form the computer can read and execute.

   >>> The original C++ program is called the "Source code", and the resulting compiled code produced by the compiler is usually called an "object file".

   >>> One or more object files are combined with predefined libraries by a linker sometimes called a binder, to produce the final complete file that can be executed by the computer.

   >>> A library is a collection of pre - compiled "object code" that provides operations that are done repeatedly by many computer programs.

   >>> Any good compiler that you purchase will provide a compiler but an editor a debugger, a library and a linker. On-line documentation and help files are usually included and many compilers have tutorial to walk you through the steps of compiling, linking and executing your first program.

No comments:

Post a Comment