Kaynağa Gözat

checked half report

Richard Torenvliet 14 yıl önce
ebeveyn
işleme
41528750e6
1 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 9 1
      report/report.tex

+ 9 - 1
report/report.tex

@@ -35,7 +35,7 @@ the keywords in to an action.
 
 \section{Design}
 
-There are two general types of of optimizations of the assembly code, global
+There are two general types of optimizations of the assembly code, global
 optimizations and optimizations on a so-called basic block. These optimizations
 will be discussed separately
 
@@ -99,6 +99,14 @@ Appendix \ref{opt}.
 A more advanced optimization is common subexpression elimination. This means
 that expensive operations as a multiplication or addition are performed only
 once and the result is then `copied' into variables where needed.
+\begin{verbatim}
+non-optimized:
+addu	$2,$2,$3
+addu	$4,$2,$3
+
+optimized:
+
+\end{verbatim}
 
 A standard method for doing this is the creation of a DAG or Directed Acyclic
 Graph. However, this requires a fairly advanced implementation. Our