Page 16 - iPrime_V2.2_class6
P. 16

Compiler

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

                  An interpreter is also a separate program that converts the entire source program written in
                  high-level language into machine language before executing it. It translates and executes one
                  statement at a time. It reads a code statement, converts it to one or more machine language
                  instructions, and then executes them. It displays the errors for 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 or assembly language must be translated into
                  machine language by using a translator called an assembler, compiler, and interpreter.


                         3 × 2 = 6                                                          Machine Code (00110)


                                               Input                             Output           Machine
                      High-level Language                     Language
                                                                                                  Language
                     or Assembly Language                     Translator



                     Reb            t


                         Digital computer refers to a computer that uses digits (binary numbers 0’s and 1’s) to
                        generate, process, and display data.
                         Microcomputers are made to be used by one person at a time.

                         Minicomputers are small general-purpose computers having the capability to serve a
                        number of users simultaneously.
                         Mainframe computers are very large, fast, and powerful computers.
                         Supercomputers are the largest and fastest of all types of computers, and they can
                        process very large amount of data quickly.
                         An embedded computer is a special type of microprocessor-based computer that is
                        developed for performing a specific task.
                         A handheld computer can easily be stored in a pocket and used by holding it in the
                        hand.

                         A  computer  language  is the  means by  which  instructions  are  transmitted  to  the
                        computer to perform a specific task.
                         Assembler, Compiler, and Interpreter are types of program that convert the source
                        program written in high-level language or assembly language into machine language
                        before executing it.




                  14     iPRIME (Ver. 2.2)–VI
   11   12   13   14   15   16   17   18   19   20   21