Translators: Interpreters, compilers and assemblers
1.2.2 Applications Generation
Practise exam questionsApplications Generation — Note 4 of 6
Candidates need to understand the need for translators when writing programs. They need to have knowledge of the differences in operation of interpreters and compilers, from these they need to be able to assess the benefits and drawbacks of using each type, and recommend with justification which should be used in a specific scenario. Candidates need to understand the role of an assembler and how it differs from interpreters and compilers.
Processors can only execute machine code, so programs written in high-level or assembly language must be translated. Compilers, interpreters and assemblers do this in different ways, with different benefits and drawbacks.
Exam tipCommon mistake
Translates the whole high-level source code into machine code (object code) in one go, producing an executable file.
Translates and executes high-level source code one line (statement) at a time, without producing an executable file.
Translates assembly language into machine code. Each assembly instruction usually corresponds to one machine code instruction.
Ready to test yourself?
Practise 1.2.2 questions