Aug 28, 2019

SOURCE CODE AND OBJECT CODE


                               SOURCE CODE AND OBJECT CODE:
      You know about code a written instruction is called code where the source code is the language which we used to write the codes or instructions which extension will .p or .cpp and the object code is the target code in which source code have to convert which extension will be .obj and may be in .exe extension
.
For example in C++ the source code is high level language which is used to write program and the object code is machine language in which HILLs to be converted.

TRANSLATOR:
 In programming language translator is used to convert source code to object code or target code. There are three translators in programming language.
        1.       Assembler
        2.       Compiler
        3.       Interpreter

ASSEMBLER:
  Type of translator which is used to convert  assembly language or mid-level language into machine language.

COMPILER AND INTERPRETER:
  Compiler or Interpreter also translators which are used to convert High Level Language into Machine language.  Compiler compile program and translate at once, and interpreter translate line by line and also execute along with there fore Compiler is best for long program and interpreter is good for short program maximum of 20 lines program. The term compiler is also used for the application which is used to write programs such as C++ Compiler.




0 comments:

Post a Comment

Please do not enter any spam link in the comment box