tutLN7soln

tutLN7soln - FIT1001 FIT1001 Computer Systems Solutions to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
FIT1001 System Software FIT1001 Computer Systems Solutions to Tutorial for LN7 System Software * Exercise 1 Basics 1. What is the di±erence between source code, object code and executable code? SOLUTION Source code – a program written by a programmer in a high-level language, such as C or Java. Object code – machine language code generated by a compiler, with relative ad- dresses and possibly external references. Executable code – a machine language program ready to be executed. External references have been resolved, but addresses are still relative. 2. What is the di±erence between an interpreter and a compiler? SOLUTION An interpreter translates each line of code and then executes it (so the lines in a loop are translated and executed several times). A compiler translates the entire program once. * Exercise 2 Compilers Consider the following program in a procedural high-level language. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

tutLN7soln - FIT1001 FIT1001 Computer Systems Solutions to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online