blob: 5d98ebe52a96b710263d35aa7289a75f656dd918 [file] [log] [blame]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>3.3. Compiling for ARMv4T and ARMv5T Systems</title><link rel="stylesheet" href="cs.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Sourcery G++ Lite"><link rel="up" href="chap-target.html" title="Chapter 3. Sourcery G++ Lite for ARM GNU/Linux"><link rel="prev" href="sec-multilibs.html" title="3.2. Library Configurations"><link rel="next" href="sec-kernel-version.html" title="3.4. Target Kernel Requirements"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3.3. Compiling for ARMv4T and ARMv5T Systems</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sec-multilibs.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Sourcery G++ Lite for ARM GNU/Linux</th><td width="20%" align="right"> <a accesskey="n" href="sec-kernel-version.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id277674"></a>3.3. Compiling for ARMv4T and ARMv5T Systems</h2></div></div></div><p>
By default Sourcery G++ generates Linux binaries that require
an ARMv5TE or later CPU. To build applications or libraries capable
of running on ARMv4T or early ARMv5 CPUs, use the
<code class="option">-march=armv4t</code> or <code class="option">-march=armv5t</code>
command-line options. These options also select libraries for
ARMv4T processors; see <a class="xref" href="sec-multilibs.html" title="3.2. Library Configurations">Section 3.2, &#8220;Library Configurations&#8221;</a> for details.
</p><p>
Code compiled for ARMv4T is ABI compatible with ARMv5 code. Code and
binaries compiled for different architectures may be mixed freely.
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sec-multilibs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="chap-target.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sec-kernel-version.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">3.2. Library Configurations </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 3.4. Target Kernel Requirements</td></tr></table></div></body></html>