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

📄 architecture-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="Architecture%20Selection">Architecture Selection</a>,

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

Previous:<a rel="previous" accesskey="p" href="Target-Selection.html#Target%20Selection">Target 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">Architecture selection</h3>



   <p>An <dfn>architecture</dfn> is a type of <small>CPU</small> on which an object file is

to run.  Its name may contain a colon, separating the name of the

processor family from the name of the particular <small>CPU</small>.



   <p>The command to list valid architecture values is <code>objdump -i</code> (the

second column contains the relevant information).



   <p>Sample values: <code>m68k:68020</code>, <code>mips:3000</code>, <code>sparc</code>.



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



   <p>Ways to specify:



     <ol type=1 start=1>

<li>command line option: <code>-m</code> or <code>--architecture</code>



     <li>deduced from the input file

        </ol>



<h4 class="subheading"><code>objcopy</code>, <code>nm</code>, <code>size</code>, <code>strings</code> Architecture</h4>



   <p>Ways to specify:



     <ol type=1 start=1>

<li>deduced from the input file

        </ol>



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



   <p>Ways to specify:



     <ol type=1 start=1>

<li>deduced from the input file

        </ol>



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



   <p>Ways to specify:



     <ol type=1 start=1>

<li>script command <code>OUTPUT_ARCH</code>

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



     <li>the default architecture from the linker output target

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

        </ol>



   </body></html>



⌨️ 快捷键说明

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