diff -r f2d7b885b3e3 -r 5dc452d7c08e coursework/cw04.tex --- a/coursework/cw04.tex Tue Sep 26 14:07:29 2017 +0100 +++ b/coursework/cw04.tex Tue Sep 26 14:08:49 2017 +0100 @@ -9,7 +9,7 @@ \section*{Coursework 4 (Strand 1)} -\noindent This coursework is worth 6\% and is due on 13 +\noindent This coursework is worth 6\% and is due on 7 December at 16:00. You are asked to implement a compiler for the WHILE language that targets the assembler language provided by Jasmin or Krakatau (both have very similar @@ -100,9 +100,10 @@ \end{center} \noindent This assembler is largely compatible with the Jasmin -syntax---that means for the files we look are concerned with, +syntax---that means for the files we are concerned with here, it understands the same input syntax (no changes to your -compiler need to be made). You can generate Java Byte Code by +compiler need to be made; ok maybe some small syntactic +adjustments are needed). You can generate Java Byte Code by using \begin{center} @@ -112,7 +113,8 @@ \noindent where you may have to adapt the directory where Krakatau is installed (I just downloaded the zip file from Github and \pcode{Krakatau-master} was the directory where it -was installed). +was installed). Again the resulting class-file you can run with +\texttt{java}. %\noindent You need to submit a document containing the answers @@ -134,7 +136,8 @@ the console which Fibonacci number and which Factorial should be calculated. The Fibonacci program is given in Figure~\ref{fibs}. You can write your own program for -calculating factorials. +calculating factorials. Submit your assembler code as +a file that can be run, not as PDF-text. \begin{figure}[t] \lstinputlisting[language=while]{../progs/fib.while}