You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
4.5 KiB
HTML
88 lines
4.5 KiB
HTML
<html lang="en">
|
|
<head>
|
|
<title>i960 - Untitled</title>
|
|
<meta http-equiv="Content-Type" content="text/html">
|
|
<meta name="description" content="Untitled">
|
|
<meta name="generator" content="makeinfo 4.13">
|
|
<link title="Top" rel="start" href="index.html#Top">
|
|
<link rel="up" href="Machine-Dependent.html#Machine-Dependent" title="Machine Dependent">
|
|
<link rel="prev" href="H8_002f300.html#H8_002f300" title="H8/300">
|
|
<link rel="next" href="M68HC11_002f68HC12.html#M68HC11_002f68HC12" title="M68HC11/68HC12">
|
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
|
<!--
|
|
This file documents the GNU linker LD
|
|
(GNU Binutils)
|
|
version 2.26.
|
|
|
|
Copyright (C) 1991-2015 Free Software Foundation, Inc.
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3
|
|
or any later version published by the Free Software Foundation;
|
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
|
Back-Cover Texts. A copy of the license is included in the
|
|
section entitled ``GNU Free Documentation License''.-->
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<style type="text/css"><!--
|
|
pre.display { font-family:inherit }
|
|
pre.format { font-family:inherit }
|
|
pre.smalldisplay { font-family:inherit; font-size:smaller }
|
|
pre.smallformat { font-family:inherit; font-size:smaller }
|
|
pre.smallexample { font-size:smaller }
|
|
pre.smalllisp { font-size:smaller }
|
|
span.sc { font-variant:small-caps }
|
|
span.roman { font-family:serif; font-weight:normal; }
|
|
span.sansserif { font-family:sans-serif; font-weight:normal; }
|
|
--></style>
|
|
</head>
|
|
<body>
|
|
<div class="node">
|
|
<a name="i960"></a>
|
|
<p>
|
|
Next: <a rel="next" accesskey="n" href="M68HC11_002f68HC12.html#M68HC11_002f68HC12">M68HC11/68HC12</a>,
|
|
Previous: <a rel="previous" accesskey="p" href="H8_002f300.html#H8_002f300">H8/300</a>,
|
|
Up: <a rel="up" accesskey="u" href="Machine-Dependent.html#Machine-Dependent">Machine Dependent</a>
|
|
<hr>
|
|
</div>
|
|
|
|
<h3 class="section">4.2 <samp><span class="command">ld</span></samp> and the Intel 960 Family</h3>
|
|
|
|
<p><a name="index-i960-support-597"></a>
|
|
You can use the ‘<samp><span class="samp">-A</span><var>architecture</var></samp>’ command line option to
|
|
specify one of the two-letter names identifying members of the 960
|
|
family; the option specifies the desired output target, and warns of any
|
|
incompatible instructions in the input files. It also modifies the
|
|
linker's search strategy for archive libraries, to support the use of
|
|
libraries specific to each particular architecture, by including in the
|
|
search loop names suffixed with the string identifying the architecture.
|
|
|
|
<p>For example, if your <samp><span class="command">ld</span></samp> command line included ‘<samp><span class="samp">-ACA</span></samp>’<!-- /@w --> as
|
|
well as ‘<samp><span class="samp">-ltry</span></samp>’<!-- /@w -->, the linker would look (in its built-in search
|
|
paths, and in any paths you specify with ‘<samp><span class="samp">-L</span></samp>’) for a library with
|
|
the names
|
|
|
|
<pre class="smallexample"> try
|
|
libtry.a
|
|
tryca
|
|
libtryca.a
|
|
</pre>
|
|
<p class="noindent">The first two possibilities would be considered in any event; the last
|
|
two are due to the use of ‘<samp><span class="samp">-ACA</span></samp>’<!-- /@w -->.
|
|
|
|
<p>You can meaningfully use ‘<samp><span class="samp">-A</span></samp>’ more than once on a command line, since
|
|
the 960 architecture family allows combination of target architectures; each
|
|
use will add another pair of name variants to search for when ‘<samp><span class="samp">-l</span></samp>’<!-- /@w -->
|
|
specifies a library.
|
|
|
|
<p><a name="index-g_t_0040option_007b_002d_002drelax_007d-on-i960-598"></a><a name="index-relaxing-on-i960-599"></a><samp><span class="command">ld</span></samp> supports the ‘<samp><span class="samp">--relax</span></samp>’ option for the i960 family. If
|
|
you specify ‘<samp><span class="samp">--relax</span></samp>’, <samp><span class="command">ld</span></samp> finds all <code>balx</code> and
|
|
<code>calx</code> instructions whose targets are within 24 bits, and turns
|
|
them into 24-bit program-counter relative <code>bal</code> and <code>cal</code>
|
|
instructions, respectively. <samp><span class="command">ld</span></samp> also turns <code>cal</code>
|
|
instructions into <code>bal</code> instructions when it determines that the
|
|
target subroutine is a leaf routine (that is, the target subroutine does
|
|
not itself call any subroutines).
|
|
|
|
</body></html>
|
|
|