Please enable JavaScript.
Coggle requires JavaScript to display documents.
High lvl vs Low lvl, image, image - Coggle Diagram
High lvl vs Low lvl
Translator
A translator converts one computer language into another. Usually it translates source code into machine code.
-
Compiler
A compiler translates high level language source code into machine code which is stored in an object file. One or more object files are then combined to form the final executable file.
Errors are picked up during compilation, but it often leads to obscure hard-to-spot errors.
-
Faster than interpreted code as all the translation to machine code is done in one pass and the compiled machine code is stored as an executable file.
-
Interpreter
An interpreter, translates source code one line at a time. Once translated, the machine code is executed immediately.
An interpreter spots an error in the source code right away because the command is carried out immediately.
An interpreter is less prone to computer crashing. Some interpreters execute code within a virtual machine which insulates the host computer from defective code.
An interpreter is slower to run compared to compiled code as every line has to be translated on the fly.
Source code is intellectual property that the owners want to keep private. But interpreted bytecode is easier to reverse engineer back into source code to reveal how it works.
-
-
-
-