⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 target-selection.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>GNU Binary Utilities</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="GNU Binary Utilities">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Target%20Selection">Target Selection</a>,

Next:<a rel="next" accesskey="n" href="Architecture-Selection.html#Architecture%20Selection">Architecture Selection</a>,

Up:<a rel="up" accesskey="u" href="Selecting-The-Target-System.html#Selecting%20The%20Target%20System">Selecting The Target System</a>

<hr><br>

</div>



<h3 class="section">Target Selection</h3>



   <p>A <dfn>target</dfn> is an object file format.  A given target may be

supported for multiple architectures (see <a href="Architecture-Selection.html#Architecture%20Selection">Architecture Selection</a>). 

A target selection may also have variations for different operating

systems or architectures.



   <p>The command to list valid target values is <code>objdump -i</code>

(the first column of output contains the relevant information).



   <p>Some sample values are: <code>a.out-hp300bsd</code>, <code>ecoff-littlemips</code>,

<code>a.out-sunos-big</code>.



   <p>You can also specify a target using a configuration triplet.  This is

the same sort of name that is passed to <code>configure</code> to specify a

target.  When you use a configuration triplet as an argument, it must be

fully canonicalized.  You can see the canonical version of a triplet by

running the shell script <code>config.sub</code> which is included with the

sources.



   <p>Some sample configuration triplets are: <code>m68k-hp-bsd</code>,

<code>mips-dec-ultrix</code>, <code>sparc-sun-sunos</code>.



<h4 class="subheading"><code>objdump</code> Target</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line option: <code>-b</code> or <code>--target</code>



     <li>environment variable <code>GNUTARGET</code>



     <li>deduced from the input file

        </ol>



<h4 class="subheading"><code>objcopy</code> and <code>strip</code> Input Target</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line options: <code>-I</code> or <code>--input-target</code>, or <code>-F</code> or <code>--target</code>



     <li>environment variable <code>GNUTARGET</code>



     <li>deduced from the input file

        </ol>



<h4 class="subheading"><code>objcopy</code> and <code>strip</code> Output Target</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line options: <code>-O</code> or <code>--output-target</code>, or <code>-F</code> or <code>--target</code>



     <li>the input target (see "<code>objcopy</code> and <code>strip</code> Input Target" above)



     <li>environment variable <code>GNUTARGET</code>



     <li>deduced from the input file

        </ol>



<h4 class="subheading"><code>nm</code>, <code>size</code>, and <code>strings</code> Target</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line option: <code>--target</code>



     <li>environment variable <code>GNUTARGET</code>



     <li>deduced from the input file

        </ol>



<h4 class="subheading">Linker Input Target</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line option: <code>-b</code> or <code>--format</code>

(see <a href="../ld.info/Options.html#Options">Options</a>)



     <li>script command <code>TARGET</code>

(see <a href="../ld.info/Format-Commands.html#Format%20Commands">Format Commands</a>)



     <li>environment variable <code>GNUTARGET</code>

(see <a href="../ld.info/Environment.html#Environment">Environment</a>)



     <li>the default target of the selected linker emulation

(see <a href="Linker-Emulation-Selection.html#Linker%20Emulation%20Selection">Linker Emulation Selection</a>)

        </ol>



<h4 class="subheading">Linker Output Target</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line option: <code>-oformat</code>

(see <a href="../ld.info/Options.html#Options">Options</a>)



     <li>script command <code>OUTPUT_FORMAT</code>

(see <a href="../ld.info/Format-Commands.html#Format%20Commands">Format Commands</a>)



     <li>the linker input target (see "Linker Input Target" above)

        </ol>



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -