author | Christian Urban <christian.urban@kcl.ac.uk> |
Wed, 21 Oct 2020 09:24:32 +0100 | |
changeset 785 | faa4489267d5 |
parent 726 | fba480bbc9f7 |
child 876 | 771396fa6cc4 |
permissions | -rw-r--r-- |
59 | 1 |
\documentclass{article} |
292
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
2 |
\usepackage{../style} |
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
3 |
\usepackage{../graphics} |
59 | 4 |
|
5 |
\begin{document} |
|
6 |
||
75
898c25a4e399
tuned
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
60
diff
changeset
|
7 |
\section*{Homework 8} |
59 | 8 |
|
359
db106e5b7c4d
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
292
diff
changeset
|
9 |
\HEADER |
db106e5b7c4d
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
292
diff
changeset
|
10 |
|
59 | 11 |
\begin{enumerate} |
292
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
12 |
\item Write a program in the WHILE-language that calculates |
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
13 |
the factorial function. |
77
49c0beef79a1
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
76
diff
changeset
|
14 |
|
292
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
15 |
\item What optimisations could a compiler perform when |
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
16 |
compiling a WHILE-program? |
206
85b961f1eee9
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
102
diff
changeset
|
17 |
|
292
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
18 |
\item What is the main difference between the Java assembler |
7ed2a25dd115
updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
206
diff
changeset
|
19 |
(as processed by Jasmin) and Java Byte Code? |
206
85b961f1eee9
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
102
diff
changeset
|
20 |
|
530 | 21 |
|
22 |
\item Explain what is meant by the terms lazy evaluation and eager |
|
577 | 23 |
evaluation. |
24 |
||
25 |
\item \POSTSCRIPT |
|
59 | 26 |
\end{enumerate} |
27 |
||
28 |
\end{document} |
|
29 |
||
30 |
%%% Local Variables: |
|
31 |
%%% mode: latex |
|
32 |
%%% TeX-master: t |
|
33 |
%%% End: |