summaryrefslogtreecommitdiff
path: root/2005/flow-accounting-ols2005/OLS2005/EXAMPLE/complexCode/complexFigure.tex
blob: 6fe6c94fc09d60e76847d71e522980f523eed99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
\documentclass[twocolumn,12pt]{article}
\usepackage{ols}
\ifpdf
\usepackage[pdftex]{epsfig}
\else
\usepackage{epsfig}
\fi
\input{ols-fonts}

% These packages are Proceedings-friendly.
\usepackage{cprog}
\usepackage[nolineno,norules]{lgrind}
\usepackage[hang,scriptsize]{subfigure}

% These ones are only suitable for standalone
\usepackage{subfigure}
%%% both of these break the Proceedings and are thus evil
\usepackage{listings}
\input{llvm.lst}    % Get listing support for llvm code
%%%%


\begin{document}

\date{}

%make title bold and 14 pt font (Latex default is non-bold, 16 pt)
\title{Architecture for a Next-Generation GCC}

\author{
Chris Lattner \hspace*{0.5in} Vikram Adve\\
\emph{University of Illinois at Urbana, Champaign}\\
\texttt{\em\normalsize \{lattner, vadve\}@cs.uiuc.edu}\\
\emph{\normalsize \url{http://llvm.cs.uiuc.edu}}} 

\maketitle

% You have to do this to suppress page numbers.  Don't ask.
\thispagestyle{empty}

Formatting team's note:  The two figures here illustrate two ways of presenting
the same information, and are hopefully more complex
than you'll require.  The first is set using Proceedings-friendly
packages; the second works only as a standalone paper.

%%% Figure typeset in a Proceedings-friendly fashion
%%% (thanks to Diego Novillo for inspiration)
\begin{figure*}[t]
\scriptsize
%%% \centering
\subfigure[Example function]{%
\label{figure:example_c}
\parbox{0.65\columnwidth}{\input{example-c}}
}\hspace*{5pt}\vrule\hspace*{5pt}
\subfigure[Corresponding LLVM code] {%
\label{figure:example_llvm}
\parbox{1.35\columnwidth}{\input{example-ll}}}
%%% }%
\caption{C and LLVM code for a function}
\label{figure:example}
\end{figure*}

%%===------------------------
%  Code example figure
%
\begin{figure*} [t]
\scriptsize
\centering
\subfigure[Example function] {
\label{figure2:example_c}
\lstset{language=c}
\lstinputlisting{Figures/example.c}
}\hspace*{5pt}\vrule\hspace*{5pt}
\subfigure[Corresponding LLVM code] {
\label{figure2:example_llvm}
\lstset{language=LLVM}
\lstinputlisting{Figures/example.ll}
}%
\caption{C and LLVM code for a function}
\label{figure2:example}
\end{figure*}
%
%%===------------------------


\end{document}


personal git repositories of Harald Welte. Your mileage may vary