![]() Compilers usually include an assembler so the output is usually in binary (call object code) rather than assembly code. The code generator then translates the program to assembly code. At this stage, the errors generated concern variables (and other names) that are not declared and code that incorrectly types.ģ. The type checker checks that the expressions in the program are correctly typed and how much space is a need for each variable. At this stage, syntax errors are generated.Ģ. A tree is constructed representing the program code. A parser checks that the source code follows the syntax of the language. Internally, the compiler has several stages:ġ. A compiled program works on the particular CPU and Operating System that it was compiled for. What is Compiler ?Ī compiler is a translator from a high-level language to the assembly code of a particular CPU. Distinguish, differentiate, compare and explain what is the main difference between Compiler and Interpreter in Computer Programming. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |