Programming Languages Flashcards
What is machine code?
Commands that the CPU executes, represented as 1s and 0s
What is the opcode of instructions for the microprocessor?
The opcode specifies the operation that is to be performed.
What is the operand of instructions for the microprocessor?
The operand is the data or the memory location where the dat can be found
What does an assembler do?
Translate assembly language programs into machine code
What is a high level language?
A programming language that is much closer to english that machine code
What are the advantages of high level languages?
Faster program development
Easier to remember the commands
Portable between different machines, as each assembly language is specific to a particular CPU
What are the advantages of using low level languages?
They require less memory and execution time than high level languages
They allow the programmer to directly control system hardware
What is the difference between a complier and a translator?
A compiler reads the whole code, and if there are no errors, translates the code into machine code. A interpreter reads the code one line at a time, converts it into machine code and executes it.