Mercurial > hg > Papers > 2012 > aplas
changeset 6:635448a197ac
modify lstlistng
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 11 Jun 2012 14:29:35 +0900 |
parents | 799ddd893b85 |
children | bcacfe595c2a |
files | paper/aplas2012.tex |
diffstat | 1 files changed, 32 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/paper/aplas2012.tex Thu Jun 07 19:13:26 2012 +0900 +++ b/paper/aplas2012.tex Mon Jun 11 14:29:35 2012 +0900 @@ -61,11 +61,23 @@ \scalebox{0.35}{\includegraphics{figure/tree2.pdf}} \end{center} \caption{\_\_rectype} - \label{fig:tree1} + \label{fig:tree2} \end{minipage} \end{figure} - +\begin{table}[htpb] +\centering +\small +\begin{tabular}{|l|r|r|r|} \hline +(unit: s) & ./conv1 1 & ./conv1 2 & ./conv1 3 \\ \hline +Micro-C(32bit) & 9.93 & 6.31 & 7.18 \\ \hline +Micro-C(64bit) & 5.03 & 5.12 & 5.00 \\ \hline \hline +GCC -O3(32bit) & 2.52 & 2.34 & 1.53 \\ \hline +GCC -O3(64bit) & 1.80 & 1.20 & 1.44 \\ \hline +\end{tabular} +\caption{Micro-C, GCC bench mark (in sec)} +\label{tab:mc,gcc,compare} +\end{table} \begin{lstlisting} @@ -79,6 +91,24 @@ \end{lstlisting} +\begin{lstlisting} +struct interface { + __code (*next)(struct interface); +}; + +__code csA(struct interface p) { + struct interface ds = { csB }; + goto p.next(ds); +} + +int main() { + struct interface ds = { print }; + goto csA(ds); + return 0; +} +\end{lstlisting} + + \bibliographystyle{junsrt} \bibliography{cbc}