From c07bccd665728a8693b2c5be891cd4a4a6d71235 Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Tue, 19 Oct 2010 23:01:01 +0200 Subject: [PATCH] isa_cmp: added cmp table and changed bit of style --- 1_isacmp/cmp.tex | 20 +++++++++++++++++++- 1_isacmp/common.sty | 18 ++++++++++++++---- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/1_isacmp/cmp.tex b/1_isacmp/cmp.tex index 9bdbc23..51a8888 100644 --- a/1_isacmp/cmp.tex +++ b/1_isacmp/cmp.tex @@ -7,4 +7,22 @@ Bei Conditional Operations reicht die Auswahl von sehr beschr\"ankt (MCS-51) bis Als Anwendungsgebiete kann man f\"ur alle Architekturen auf jedenfall Embedded Systems angeben. ARM und PowerPC sind auch im Desktop- und Serverbereich anzutreffen. Die Instruktionsetgr\"o\ss e ist bei AVR und MCS-51, durch die 8-Bit bedingt, eher klein. SPEAR2 ist auch eher klein weil die urspr\"ungliche Architektur ebenfalls nur 8-Bit war. ARM und PowerPC haben, auch durch die 32-Bit L\"ange bedingt, ein gro\ss es Instruktionset. Das Sichern der R\"ucksprungadresse wird unterschiedlich gehandelt, AVR und MCS-51 sichern die Adresse automatisch auf den Stack. PowerPC, SPEAR2 und ARM sichern die R\"ucksprungadresse in ein Register. -Codesize und Ausf\"uhrungszeit des Codest\"ucks \texttt{sum} sind in der folgenden Tabelle ersichtlich: \ldots \footnote{Ausf\"ullen wenn alle ihren Code fertig haben} +Codesize und Ausf\"uhrungszeit des Codest\"ucks \texttt{sum} sind in Tabelle \ref{cmp_tab} ersichtlich. Es ist ersichtlich das die Prozessoren mit h\"oherer Instruktionsl\"ange besser abschneiden wenn es um Codesize und Anzahl der Zyklen geht, was aber auch nicht verwundert. \\ + + +\begin{table}[h] +\begin{center} + \begin{tabular}{|l|c|c|c|c|c|}\hline + Anzahl & AVR & ARM & PowerPC & MCS-51 & SPEAR2 \\ \hline + Instruktionen & 9 & 6 & 3 & 21 & 6 \\ \hline + Zyklen & 13/14 & 8 & 3 & 30 & 7 \\ \hline + Bytes & 18 & & 12 & 32 & 12 \\ \hline + \end{tabular} + \caption{Vergleich der ISAs anhand der erfassten Kennwerte} + \label{cmp_tab} +\end{center} +\end{table} + + + +\huge{ARM CODESIZE FEHLT!!!} diff --git a/1_isacmp/common.sty b/1_isacmp/common.sty index 726344d..4e2cb15 100644 --- a/1_isacmp/common.sty +++ b/1_isacmp/common.sty @@ -5,6 +5,20 @@ \usepackage[latin1]{inputenc} \usepackage{listings} + +% put footnotes below floats +% this is a good idea if the table for the cmp looks bad on top of page +\usepackage{fnpos} +\makeFNbelow + + +\lstset{% +basicstyle=\footnotesize, +frame=single, +breaklines=true, +tabsize=4 +} + \newcommand{\insertemail}[1]{\href{mailto:#1}{#1}} \newcommand{\longcomment}[1]{} @@ -22,7 +36,3 @@ \addauthor{Bernhard Urban}{0725771}{lewurm@gmail.com} } } - -\lstset{ - tabsize=4 -} -- 2.25.1