Page 120 - C_GPT _V4 _class_6
P. 120

Compiler

              A compiler is software that converts the entire source program into machine language before executing
              it. It converts the entire high-level language program into machine language at once. It displays the
              errors for the whole program together.

              Interpreter

              An interpreter is also software that converts the entire source program into machine language before
              executing it. However, it translates and executes one statement at a time. It displays the errors of one
              line at a time, and it goes to the next line only after the error is corrected.


              WORKING OF LANGUAGE TRANSLATORS


              The programs written in a high-level language must be translated into machine language by using a
              translator called a compiler or interpreter.

                                    3 × 2 = 6                                Machine Code (0110)


                                    High-level   Input    Language      Output     Machine
                                    Language              Translator              Language





                        Experiential Learning                                                         Lab Activity

                  Find out any two languages like French, German, etc. Translate your name from English language to another
                  language by using Google Translator and write it in the given space.










































                118     CodeGPT (Ver. 4.0)-VI
   115   116   117   118   119   120   121   122   123   124   125