Explorar o código

checked half report

Richard Torenvliet %!s(int64=14) %!d(string=hai) anos
pai
achega
41528750e6
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  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