* Fix spelling and grammar errors
[oota-llvm.git] / docs / ObjectFiles.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
2                       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html>
4 <head>
5         <title>Object Files: Understanding The Result Of LLVM Compilation</title>
6   <link rel="stylesheet" href="llvm.css" type="text/css">
7   <style>
8   <!--
9     td { border: 2px solid gray }
10   -->
11   </style>
12 </head>
13 <body>
14 <div class="doc_title">
15   Object Files: Understanding The Result Of LLVM Compilation
16 </div>
17
18 <ol>
19   <li><a href="#abstract">Abstract</a></li>
20   <li><a href="#introduction">Introduction</a></li>
21   <li><a href="#files">File Contents</a></li>
22   <li><a href="#rot">Linkage Rules Of Thumb</a>
23           <ol>
24                         <li><a href="#always">Always Link vmcore.o, support.a</a>
25                         <li><a href="#placeholder">Placeholder</a>
26                 </ol>
27         </li>
28 </ol>
29
30 <div class="doc_author">
31   <p>Written by <a href="mailto:rspencer@x10sys.com">Reid Spencer</a></p>
32 </div>
33
34 <!-- ======================================================================= -->
35 <div class="doc_section"><a name="abstract">Abstract</a></div>
36 <div class="doc_text">
37 <p>This document describes the contents of the many objects files and libraries
38 that are produced by compiling LLVM. To make use of LLVM this information is 
39 needed in order to understand what files should be linked into your program.
40 </p>
41 </div>
42 <!-- ======================================================================= -->
43 <div class="doc_section"> <a name="introduction">Introduction</a></div>
44 <div class="doc_text">
45 <p>If you're writing a compiler, virtual machine, or any other utility for
46          LLVM, you'll need to figure out which of the many .a (archive) and .o
47          (object) files you will need to link with to be successful. An
48          understanding of the contents of these files and their inter-relationships
49          will be useful in coming up with an optimal specification for the objects
50          and libraries to link with. 
51 </p>
52 <p>The purpose of this document is to hopefully reduce some of the trial and
53    error that the author experienced in using LLVM.
54 </p>
55 </div>
56 <!-- ======================================================================= -->
57 <div class="doc_section"><a name="files"></a>File Contents</div>
58 <div class="doc_text">
59 <p>The table below provides a summary of the basic contents of each file.</p>
60 <table class="doc_table" 
61         style="width:80%; text-align: left; border: 2px solid gray; border-collapse: collapse;">
62 <tr class="doc_table">
63         <td colspan="2" class="doc_section">Summary Of LLVM Library And Object Files
64         </td>
65 </tr>
66 <tr class="doc_table">
67         <td><h2><u>Library</u></h2></td>
68         <td><h2><u>Description</u></h2></td>
69 </tr>
70 <tr class="doc_table">
71         <td>libipo.a</td>
72         <td>
73                 An archive of all interprocedural optimizations.
74         </td>
75 </tr>
76 <tr class="doc_table">
77         <td>libscalaropts.a</td>
78         <td>
79                 An archive of all scalar optimizations.
80         </td>
81 </tr>
82 <tr class="doc_table">
83         <td>libtransforms.a</td>
84         <td>Uncategorized transformations.</td>
85 </tr>
86 <tr class="doc_table">
87         <td>libtarget.a</td>
88         <td>An archive containing generic code generator support.</td>
89 </tr>
90 <tr class="doc_table">
91         <td>libanalysis.a</td>
92         <td>An archive containing intraprocedural analyses.</td>
93 </tr>
94 <tr class="doc_table">
95         <td>libdatastructure.a</td>
96         <td>An archive containing Data Structure Analysis.</td>
97 </tr>
98 <tr class="doc_table">
99         <td>libinstrument.a</td>
100         <td>Intraprocedural instrumentation and utilities.</td>
101 </tr>
102 <tr class="doc_table">
103         <td>libsparcv9regalloc.a</td>
104         <td>SparcV9 graph-coloring register allocator.</td>
105 </tr>
106 <tr class="doc_table">
107         <td>libipa.a</td>
108         <td>An archive containing interprocedural analyses</td>
109 </tr>
110 <tr class="doc_table">
111         <td>libtransformutils.a</td>
112         <td>Utility functions for transformations.</td>
113 </tr>
114 <tr class="doc_table">
115         <td>libsupport.a</td>
116         <td>General support utilities</td>
117 </tr>
118 <tr class="doc_table">
119         <td><h2><u>Object File</u></h2></td>
120         <td><h2><u>Description</u></h2></td>
121 </tr>
122 <tr class="doc_table">
123         <td>support.o</td>
124         <td>General support utilities</td>
125 </tr>
126 <tr class="doc_table">
127         <td>asmparser.o</td>
128         <td>Assembler Parser</td>
129 </tr>
130 <tr class="doc_table">
131         <td>bcreader.o</td>
132         <td>Bytecode Reader</td>
133 </tr>
134 <tr class="doc_table">
135         <td>bcwriter.o</td>
136         <td>Bytecode Writer</td>
137 </tr>
138 <tr class="doc_table">
139         <td>sched.o</td>
140         <td>SparcV9 instruction scheduler</td>
141 </tr>
142 <tr class="doc_table">
143         <td>selectiondag.o</td>
144         <td>Aggressive instruction selector for Directed Acyclic Graphs</td>
145 </tr>
146 <tr class="doc_table">
147         <td>transformutils.o</td>
148         <td>Utilities for code transformations</td>
149 </tr>
150 <tr class="doc_table">
151         <td>ipa.o</td>
152         <td>Interprocedural Analyses</td>
153 </tr>
154 <tr class="doc_table">
155         <td>sparcv9select.o</td>
156         <td>SparcV9 instruction selector</td>
157 </tr>
158 <tr class="doc_table">
159         <td>cwriter.o</td>
160         <td>"C" Code Writer</td>
161 </tr>
162 <tr class="doc_table">
163         <td>profpaths.o</td>
164         <td>Path profiling instrumentation</td>
165 </tr>
166 <tr class="doc_table">
167         <td>sparcv9regalloc.o</td>
168         <td>SparcV9 graph-coloring register allocator</td>
169 </tr>
170 <tr class="doc_table">
171         <td>instrument.o</td>
172         <td>Intraprocedural instrumentation and utilities.</td>
173 </tr>
174 <tr class="doc_table">
175         <td>datastructure.o</td>
176         <td>Data Structure Analysis</td>
177 </tr>
178 <tr class="doc_table">
179         <td>codegen.o</td>
180         <td>Native code generation</td>
181 </tr>
182 <tr class="doc_table">
183         <td>sparcv9livevar.o</td>
184         <td>SparcV9 Live Variable Analysis</td>
185 </tr>
186 <tr class="doc_table">
187         <td>vmcore.o</td>
188         <td>Virtual Machine Core</td>
189 </tr>
190 <tr class="doc_table">
191         <td>lli-interpreter.o</td>
192         <td>Interpreter for LLVM ByteCode</td>
193 </tr>
194 <tr class="doc_table">
195         <td>lli-jit.o</td>
196         <td>
197                 Just-In-Time Compiler For LLVM ByteCode
198         </td>
199 </tr>
200 <tr class="doc_table">
201         <td>executionengine.o</td>
202         <td>Engine for LLI</td>
203 </tr>
204 <tr class="doc_table">
205         <td>debugger.o</td>
206         <td>Source Level Debugging Support</td>
207 </tr>
208 <tr class="doc_table">
209         <td>analysis.o</td>
210         <td>General framework for Analysis</td>
211 </tr>
212 <tr class="doc_table">
213         <td>sparcv9.o</td>
214         <td>SparcV9 backend</td>
215 </tr>
216 <tr class="doc_table">
217         <td>target.o</td>
218         <td>Generic backend support</td>
219 </tr>
220 <tr class="doc_table">
221         <td>transforms.o</td>
222         <td>Uncategorized transformations.</td>
223 </tr>
224 <tr class="doc_table">
225         <td>x86.o</td>
226         <td>Intel x86 backend</td>
227 </tr>
228 <tr class="doc_table">
229         <td>powerpc.o</td>
230         <td>PowerPC backend</td>
231 </tr>
232 <tr class="doc_table">
233         <td>scalaropts.o</td>
234         <td>Optimizations For Scalars</td>
235 </tr>
236 <tr class="doc_table">
237         <td>ipo.o</td>
238         <td>Interprocedural Optimizations</td>
239 </tr>
240 <tr class="doc_table">
241         <td>trace.o</td>
242         <td>Support For Tracing/Debugging?</td>
243 </tr>
244 <tr class="doc_table">
245         <td>profile_rt.o</td>
246         <td>Runtime Library For Profiler</td>
247 </tr>
248 <tr class="doc_table">
249         <td>sample.o</td>
250         <td>Sample Program ?</td>
251 </tr>
252 <tr class="doc_table">
253         <td>stkr_compiler.o</td>
254         <td>Stacker Language Compiler Library</td>
255 </tr>
256 <tr class="doc_table">
257         <td>stkr_runtime.o</td>
258         <td>Stacker Language Runtime Library</td>
259 </tr>
260 </table>
261 </div>
262 <p></p>
263 <!-- ======================================================================= -->
264 <div class="doc_section"><a name="rot">Linkage Rules Of Thumb</a></div>
265 <div class="doc_text">
266         <p>This section contains various "rules of thumb" about what files you
267         should link into your programs.</p>
268 </div>
269 <!-- ======================================================================= -->
270 <div class="doc_subsection"><a name="always">Always Link vmcore.o support.a</a>
271 </div>
272 <div class="doc_text">
273         <p>No matter what you do with LLVM, you'll always need to link with vmcore.o 
274         and support.a.</p>
275 </div>
276 <!-- ======================================================================= -->
277 <div class="doc_subsection"><a name="Placeholder">Placeholder</a></div>
278 <div class="doc_text">
279         <p>Need more rules of thumb here.</p>
280 </div>
281 <!-- ======================================================================= -->
282 <hr>
283 <div class="doc_footer">
284 <address><a href="mailto:rspencer@x10sys.com">Reid Spencer</a></address>
285 <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a> 
286 <br>Last modified: $Date$ </div>
287 </body>
288 </html>
289 <!-- vim: sw=2 ts=2 ai
290 -->