High-level code and Low-Level coding languages: Flashcards
What is machine code?
= Binary representation of instructions.
= Format the CPU can decode and execute.
= Has an operation code (opcode) instruction.
= Address and data to use (operand).
What are low-level languages?
= Written in assembly language.
= Translated by an assembler into machine code.
= Used for embedded systems, device drivers where instructing the hardware directley is needed.
= ONE INSTRUCTION IS TRANSLATED INTO ONE MACHINE CODE INSTRUCTION.
What are the advantages of low-level code?
= Memory efficient.
= Code is fast to execute.
y.
What are the disadvantages of low-level code?
= Code is harder to write and understand.
= = = Works on one type of processor + Works with memory directl
What are high-level languages?
= Written in source code (PYTHON, C++,JAVA, VISUAL BASIC).
= Translated by a compiler or interpreter into machine code.
= Uses commands similar to english: easier to write code.
= ONE SOURCE CODE INSTRUCTION TRANSLATES TO MANY MACHINE CODE INSTRUCTIONS.
What are the advantages of high-level languages?
= Code is quicker and easier to understand and write.
= Runs on different types of processors.
= Lots of data structures to use.
What are the disadvantages of high-level code?
= Code can be slower to execute if not optimised.
= Less memory efficient.