Page 103 - 2622_Delhi Police Public School_C-6
P. 103

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.









































                                                                                     Introduction to Programming   101
   98   99   100   101   102   103   104   105   106   107   108