![]() ![]() In java language, compiler and interpreter work together to generate machine code. In interpreter, the code is converted line by line and if an error occurs in the code then program execution stops. In a compiler, all the code is converted at one time and the error report is generated for the whole program. The intermediate code looks same as assembler code.ĭuring source code conversion variables and arithmetic operators like +, -, *, / are extracted from the code and then calculated. ![]() The idea is simple: You write the program, then hand it to the compiler which translates it. Interpreter converts source code into the intermediate form and then convert that intermediate code into machine language. Compilers were the first sort of translator program to be written. Compiler vs interpreter vs assemblerĪ compiler converts high-level language program code into machine language and then execute it. Machine code is also known as object code.Īssembler converts source code written in assembly language into machine code and then that machine code is executed by a computer. In computers, the source code or program is translated into machine code by different methods. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |