2004-09-05 02:56:39 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
2004-02-27 06:28:34 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Object Files: Understanding The Result Of LLVM Compilation</title>
|
|
|
|
<link rel="stylesheet" href="llvm.css" type="text/css">
|
2004-09-05 02:56:39 +00:00
|
|
|
<style>
|
|
|
|
<!--
|
|
|
|
td { border: 2px solid gray }
|
|
|
|
-->
|
|
|
|
</style>
|
2004-02-27 06:28:34 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2004-09-05 02:56:39 +00:00
|
|
|
<div class="doc_title">
|
|
|
|
Object Files: Understanding The Result Of LLVM Compilation
|
|
|
|
</div>
|
|
|
|
|
2004-02-27 06:28:34 +00:00
|
|
|
<ol>
|
|
|
|
<li><a href="#abstract">Abstract</a></li>
|
|
|
|
<li><a href="#introduction">Introduction</a></li>
|
|
|
|
<li><a href="#files">File Contents</a></li>
|
|
|
|
<li><a href="#rot">Linkage Rules Of Thumb</a>
|
|
|
|
<ol>
|
|
|
|
<li><a href="#always">Always Link vmcore.o, support.a</a>
|
|
|
|
<li><a href="#placeholder">Placeholder</a>
|
|
|
|
</ol>
|
|
|
|
</li>
|
|
|
|
</ol>
|
2004-05-23 21:07:27 +00:00
|
|
|
|
|
|
|
<div class="doc_author">
|
|
|
|
<p>Written by <a href="mailto:rspencer@x10sys.com">Reid Spencer</a></p>
|
2004-02-27 06:28:34 +00:00
|
|
|
</div>
|
2004-05-23 21:07:27 +00:00
|
|
|
|
2004-02-27 06:28:34 +00:00
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<div class="doc_section"><a name="abstract">Abstract</a></div>
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>This document describes the contents of the many objects files and libraries
|
|
|
|
that are produced by compiling LLVM. To make use of LLVM this information is
|
|
|
|
needed in order to understand what files should be linked into your program.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<div class="doc_section"> <a name="introduction">Introduction</a></div>
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>If you're writing a compiler, virtual machine, or any other utility for
|
|
|
|
LLVM, you'll need to figure out which of the many .a (archive) and .o
|
|
|
|
(object) files you will need to link with to be successful. An
|
|
|
|
understanding of the contents of these files and their inter-relationships
|
|
|
|
will be useful in coming up with an optimal specification for the objects
|
|
|
|
and libraries to link with.
|
|
|
|
</p>
|
|
|
|
<p>The purpose of this document is to hopefully reduce some of the trial and
|
|
|
|
error that the author experienced in using LLVM.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<div class="doc_section"><a name="files"></a>File Contents</div>
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>The table below provides a summary of the basic contents of each file.</p>
|
|
|
|
<table class="doc_table"
|
2004-09-05 02:56:39 +00:00
|
|
|
style="width:80%; text-align: left; border: 2px solid gray; border-collapse: collapse;">
|
2004-02-27 06:28:34 +00:00
|
|
|
<tr class="doc_table">
|
|
|
|
<td colspan="2" class="doc_section">Summary Of LLVM Library And Object Files
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td><h2><u>Library</u></h2></td>
|
|
|
|
<td><h2><u>Description</u></h2></td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libipo.a</td>
|
|
|
|
<td>
|
2004-02-27 06:28:34 +00:00
|
|
|
An archive of all inter-procedural optimizations.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libscalaropts.a</td>
|
|
|
|
<td>
|
2004-02-27 06:28:34 +00:00
|
|
|
An archive of all scalar optimizations.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libtransforms.a</td>
|
|
|
|
<td>
|
2004-02-27 16:17:20 +00:00
|
|
|
An archive of just the level raise pass.
|
2004-02-27 06:28:34 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libtarget.a</td>
|
|
|
|
<td>
|
2004-02-27 16:17:20 +00:00
|
|
|
An archive containing code generator support for describing
|
|
|
|
target architectures.
|
2004-02-27 06:28:34 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libanalysis.a</td>
|
|
|
|
<td>
|
2004-02-27 16:17:20 +00:00
|
|
|
An archive containing intra-procedural analyses.
|
2004-02-27 06:28:34 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libdatastructure.a</td>
|
|
|
|
<td>
|
2004-02-27 06:28:34 +00:00
|
|
|
An archive containing optimizations for data structures.
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libinstrument.a</td>
|
|
|
|
<td>No idea.</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libregalloc.a</td>
|
|
|
|
<td>Register Allocation code.</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libipa.a</td>
|
|
|
|
<td>
|
2004-02-27 16:17:20 +00:00
|
|
|
An archive containing inter-procedural analyses</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libtransformutils.a</td>
|
|
|
|
<td>
|
2004-02-27 06:28:34 +00:00
|
|
|
Utiltities for transformations?
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libsupport.a</td>
|
|
|
|
<td>General support utilities</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
2004-02-27 16:17:20 +00:00
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>libevar.a</td>
|
|
|
|
<td>Live variable analysis for SPARC</td>
|
2004-02-27 16:17:20 +00:00
|
|
|
</tr>
|
2004-02-27 06:28:34 +00:00
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td><h2><u>Object File</u></h2></td>
|
|
|
|
<td><h2><u>Description</u></h2></td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>support.o</td>
|
|
|
|
<td>General support utilities</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>asmparser.o</td>
|
|
|
|
<td>Assembler Parser</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>bcreader.o</td>
|
|
|
|
<td>Byte Code Reader</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>bcwriter.o</td>
|
|
|
|
<td>Byte Code Writer</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>sched.o</td>
|
|
|
|
<td>SPARC instruction scheduler</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>selectiondag.o</td>
|
|
|
|
<td>Aggressive instruction selector for Directed Acyclic Graphs</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>transformutils.o</td>
|
|
|
|
<td>Utilities for code transformations</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>ipa.o</td>
|
|
|
|
<td>Inter-Procedural Analysis Optimizations</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>select.o</td>
|
|
|
|
<td>SPARC instruction selector</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>cwriter.o</td>
|
|
|
|
<td>"C" Code Writer</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>profpaths.o</td>
|
|
|
|
<td>Path profiling instrumentation</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>regalloc.o</td>
|
|
|
|
<td>Register Allocation</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>instrument.o</td>
|
|
|
|
<td>Instrumentation? Of What?</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>datastructure.o</td>
|
|
|
|
<td>Data Structure Analysis</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>codegen.o</td>
|
|
|
|
<td>Native code generation</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>livevar.o</td>
|
|
|
|
<td>Live Variable Analysis</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>vmcore.o</td>
|
|
|
|
<td>Virtual Machine Core</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>lli-interpreter.o</td>
|
|
|
|
<td>Interpreter for LLVM ByteCode</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>lli-jit.o</td>
|
|
|
|
<td>
|
2004-02-27 06:28:34 +00:00
|
|
|
Just-In-Time Compiler For LLVM ByteCode
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>executionengine.o</td>
|
|
|
|
<td>Engine for LLI</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>debugger.o</td>
|
|
|
|
<td>Source Level Debugging Support</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>analysis.o</td>
|
|
|
|
<td>General Framework For Analysis?</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>sparc.o</td>
|
|
|
|
<td>Sun SPARC Processor Specific</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>target.o</td>
|
|
|
|
<td>Target Machine Support?</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>transforms.o</td>
|
|
|
|
<td>Code Transformations</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>x86.o</td>
|
|
|
|
<td>Intel x86 Processor Specific</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>powerpc.o</td>
|
|
|
|
<td>PowerPC Processor Specific</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>scalaropts.o</td>
|
|
|
|
<td>Optimizations For Scalars</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>ipo.o</td>
|
|
|
|
<td>Inter-Procedural Optimization</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>trace.o</td>
|
|
|
|
<td>Support For Tracing/Debugging?</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>profile_rt.o</td>
|
|
|
|
<td>Runtime Library For Profiler</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>sample.o</td>
|
|
|
|
<td>Sample Program ?</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>stkr_compiler.o</td>
|
|
|
|
<td>Stacker Language Compiler Library</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="doc_table">
|
2004-09-05 02:56:39 +00:00
|
|
|
<td>stkr_runtime.o</td>
|
|
|
|
<td>Stacker Language Runtime Library</td>
|
2004-02-27 06:28:34 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<p></p>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<div class="doc_section"><a name="rot">Linkage Rules Of Thumb</a></div>
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>This section contains various "rules of thumb" about what files you
|
|
|
|
should link into your programs.</p>
|
|
|
|
</div>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<div class="doc_subsection"><a name="always">Always Link vmcore.o support.a</a>
|
|
|
|
</div>
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>No matter what you do with LLVM, you'll always need to link with vmcore.o
|
|
|
|
and support.a.</p>
|
|
|
|
</div>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<div class="doc_subsection"><a name="Placeholder">Placeholder</a></div>
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>Need more rules of thumb here.</p>
|
|
|
|
</div>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<hr>
|
|
|
|
<div class="doc_footer">
|
|
|
|
<address><a href="mailto:rspencer@x10sys.com">Reid Spencer</a></address>
|
|
|
|
<a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a>
|
|
|
|
<br>Last modified: $Date$ </div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
<!-- vim: sw=2 ts=2 ai
|
|
|
|
-->
|