updated
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 17 Nov 2014 08:38:52 +0000
changeset 308 3703ade9b17c
parent 307 1b86f6522697
child 309 640e4a05cd9b
updated
progs/appHa.j
progs/appHb.j
slides/slides08.pdf
slides/slides08.tex
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/progs/appHa.j	Mon Nov 17 08:38:52 2014 +0000
@@ -0,0 +1,25 @@
+ldc 1000
+istore 0
+iload 0
+istore 1
+iload 0
+istore 2
+iload 0
+istore 3
+
+Loop_begin_0:
+
+ldc 0
+iload 1
+if_icmpge Loop_end_1
+
+Loop_begin_2:
+
+ldc 0
+iload 2
+if_icmpge Loop_end_3
+
+Loop_begin_4:
+
+ldc 0
+iload 3
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/progs/appHb.j	Mon Nov 17 08:38:52 2014 +0000
@@ -0,0 +1,28 @@
+if_icmpge Loop_end_5
+iload 3
+ldc 1
+isub
+istore 3
+goto Loop_begin_4
+
+Loop_end_5:
+
+iload 0
+istore 3
+iload 2
+ldc 1
+isub
+istore 2
+goto Loop_begin_2
+
+Loop_end_3:
+
+iload 0
+istore 2
+iload 1
+ldc 1
+isub
+istore 1
+goto Loop_begin_0
+
+Loop_end_1:
Binary file slides/slides08.pdf has changed
--- a/slides/slides08.tex	Sun Nov 16 18:05:14 2014 +0000
+++ b/slides/slides08.tex	Mon Nov 17 08:38:52 2014 +0000
@@ -32,7 +32,6 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\mode<presentation>{
 \begin{frame}[c]
 \frametitle{Bird's Eye View}
 
@@ -47,10 +46,32 @@
 \end{tikzpicture}\\
 \end{center}
 
-\end{frame}}
+\end{frame}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
  
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{frame}[c]
+\frametitle{JVM Code}
+\footnotesize
+\mbox{}\\[-20mm]\mbox{}
+
+\begin{columns}
+\begin{column}{7cm} 
+\lstinputlisting[numbers=none]{../progs/appHa.j}
+\end{column}
+
+\begin{column}{7cm} 
+\lstinputlisting[numbers=none]{../progs/appHb.j}
+\end{column}
+
+\end{columns}
+
+\end{frame}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
+ 
+ 
+ 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \mode<presentation>{
 \begin{frame}[c]
 
@@ -149,6 +170,27 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{frame}[c]
+\tiny
+
+\begin{columns}
+\begin{column}{7cm} 
+\lstinputlisting[numbers=none]{../progs/appHa.j}
+\end{column}
+
+\begin{column}{7cm} 
+\lstinputlisting[numbers=none]{../progs/appHb.j}
+\end{column}
+
+\end{columns}
+
+\end{frame}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
+ 
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \mode<presentation>{
 \begin{frame}[t]
 \frametitle{\begin{tabular}{c}Interpreted Code\end{tabular}}