differences between assembly code and high level language Flashcards
What does assembly code use to represent machine code instructions/opcodes?
Mnemonics
What type of notation do high-level languages use?
More natural/mathematical notation
why does assembly code consist of many more lines compared to high-level languages?
Because assembly code consists of simple instructions
Is assembly code specific to the instruction set of a given processor?
Yes, assembly code is specific to the instruction set of a given processor.
Are high-level languages architecture specific?
No, high-level languages are not architecture specific.
What advantage does assembly code provide in terms of efficiency?
It allows the programmer to choose the exact instructions for highly efficient code.
What level of control over hardware does assembly code offer?
Direct control of hardware.
Can high-level language compilers optimize code efficiency?
Yes, high-level language compilers have optimizers that can sometimes outperform human-written assembly code.
Why is high-level code easier to follow and debug compared to assembly code?
Because high-level code is more intuitive and easier to read.
How does the ease of writing high-level code compare to assembly code in terms of time?
High-level code can be written in a much shorter time frame.
Can high-level code be recompiled for different architectures?
Yes, high-level code can be recompiled for different architectures.
Why might programmers prefer high-level languages for different problems?
High-level languages come in a variety of paradigms, allowing programmers to choose according to the problem/their preference.