![]() ![]() Compilation is slow but machine code can be executed quickly. ![]() The machine code is saved and stored separately to the high-level code. It can be difficult to test individual lines of compiled code compared to interpreted languages as all bugs are reported after the program has been compiled. CompilerĪ compiler translates the whole program into machine code before the program is run. They are used for client -side and server -side coding, as they are small programs that are executed within the browser. These are ideal for using within dynamic web applications. Interpreted languages are also called scripting languages. Interpreted languages include JavaScript, PHP, Python and Ruby. Interpreted code is slower to execute than compiled code. Interpreted code will show an error as soon as it hits a problem, so it is easier to debug than compiled code.Īn interpreter does not create an independent final set of source code - source code is created each time it runs. InterpreterĪn interpreter translates code into machine code, instruction by instruction - the CPU executes each instruction before the interpreter moves on to translate the next instruction. 'An assembler translates assembly language into machine code.Īssembly language is a low-level language written in mnemonics that closely reflects the operations of the CPU. Translators are assemblers, interpreters or compilers. Translators - usually included within programming software - convert high-level code into machine code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |