Translation questions
Q1. Why do programs that people write need to be translated into object code?
Q2. What are the three main steps in translating some source code?
Q3. Describe what happens in the lexical analysis stage of translation.
Q4. What is meant by the ‘syntax’ of a program instruction?
Q5. Describe what happens in the syntax analysis stage of translation.
Q6. Why does the code generated during translation need to be optimised?
Q7. Show how the reverse Polish notation AB+CD*+ is calculated using the stack.
Q8. What is a linker program used for?
Q9. What does a loader program do?
Q10. What is meant by ‘relative addressing’?