added
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 19 Nov 2013 23:44:49 +0000
changeset 197 6622bd256029
parent 196 7182786d9c68
child 198 f54972b0f641
added
slides/slides08.pdf
slides/slides08.tex
Binary file slides/slides08.pdf has changed
--- a/slides/slides08.tex	Tue Nov 19 23:38:49 2013 +0000
+++ b/slides/slides08.tex	Tue Nov 19 23:44:49 2013 +0000
@@ -227,12 +227,15 @@
 \mode<presentation>{
 \begin{frame}[c]
 \frametitle{Assembly Code}
-\mbox{}\\[-20mm]\mbox{}
+\mbox{}\\[-12mm]\mbox{}
 
 \begin{center}
-\includegraphics[scale=0.7]{../pics/assembly.jpg}
+\includegraphics[scale=0.65]{../pics/assembly.jpg}
 \end{center}
 
+\small\mbox{}\\[-10mm]
+Jasmin assembler for Java bytecode
+
 \end{frame}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
 
@@ -847,7 +850,27 @@
 \end{frame}}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\mode<presentation>{
+\begin{frame}[c]
+\frametitle{Backend}
 
+\begin{center}
+\begin{tikzpicture}
+\node (rexp)  {\bl{\bf Lexer}};
+\node (nfa) [right=of rexp] {\bl{\bf Parser}};
+\node (dfa) [right=of nfa] {\bl{\begin{tabular}{c}\bf Optimizations\end{tabular}}};
+\path[->, red, line width=2mm] (rexp) edge node [above=4mm, black] {\begin{tabular}{c@{\hspace{9mm}}}token\\[-1mm]
+sequence\end{tabular}} (nfa);
+\node (final) [below=of dfa] {\bl{\begin{tabular}{c}\bf Machine Code/\\\bf Byte Code\end{tabular}}};
+\path[->, red, line width=2mm] (nfa) edge node [above=4mm, black] {\begin{tabular}{c}parse\\[-1mm] tree
+\end{tabular}}(dfa);
+\path[->, red, line width=2mm] (dfa) edge (final);
+\end{tikzpicture}\\
+\end{center}
+
+\end{frame}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \mode<presentation>{