1<html lang="en"> 2<head> 3<title>Architecture Selection - GNU Binary Utilities</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="GNU Binary Utilities"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Selecting-the-Target-System.html#Selecting-the-Target-System" title="Selecting the Target System"> 9<link rel="prev" href="Target-Selection.html#Target-Selection" title="Target Selection"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<!-- 12Copyright (C) 1991-2013 Free Software Foundation, Inc. 13 14Permission is granted to copy, distribute and/or modify this document 15under the terms of the GNU Free Documentation License, Version 1.3 16or any later version published by the Free Software Foundation; 17with no Invariant Sections, with no Front-Cover Texts, and with no 18Back-Cover Texts. A copy of the license is included in the 19section entitled ``GNU Free Documentation License''. 20 21--> 22<meta http-equiv="Content-Style-Type" content="text/css"> 23<style type="text/css"><!-- 24 pre.display { font-family:inherit } 25 pre.format { font-family:inherit } 26 pre.smalldisplay { font-family:inherit; font-size:smaller } 27 pre.smallformat { font-family:inherit; font-size:smaller } 28 pre.smallexample { font-size:smaller } 29 pre.smalllisp { font-size:smaller } 30 span.sc { font-variant:small-caps } 31 span.roman { font-family:serif; font-weight:normal; } 32 span.sansserif { font-family:sans-serif; font-weight:normal; } 33--></style> 34<link rel="stylesheet" type="text/css" href="../cs.css"> 35</head> 36<body> 37<div class="node"> 38<a name="Architecture-Selection"></a> 39<p> 40Previous: <a rel="previous" accesskey="p" href="Target-Selection.html#Target-Selection">Target Selection</a>, 41Up: <a rel="up" accesskey="u" href="Selecting-the-Target-System.html#Selecting-the-Target-System">Selecting the Target System</a> 42<hr> 43</div> 44 45<h3 class="section">18.2 Architecture Selection</h3> 46 47<p>An <dfn>architecture</dfn> is a type of <span class="sc">cpu</span> on which an object file is 48to run. Its name may contain a colon, separating the name of the 49processor family from the name of the particular <span class="sc">cpu</span>. 50 51 <p>The command to list valid architecture values is ‘<samp><span class="samp">objdump -i</span></samp>’ (the 52second column contains the relevant information). 53 54 <p>Sample values: ‘<samp><span class="samp">m68k:68020</span></samp>’, ‘<samp><span class="samp">mips:3000</span></samp>’, ‘<samp><span class="samp">sparc</span></samp>’. 55 56<h4 class="subheading"><samp><span class="command">objdump</span></samp> Architecture</h4> 57 58<p>Ways to specify: 59 60 <ol type=1 start=1> 61<li>command line option: <samp><span class="option">-m</span></samp> or <samp><span class="option">--architecture</span></samp> 62 63 <li>deduced from the input file 64 </ol> 65 66<h4 class="subheading"><samp><span class="command">objcopy</span></samp>, <samp><span class="command">nm</span></samp>, <samp><span class="command">size</span></samp>, <samp><span class="command">strings</span></samp> Architecture</h4> 67 68<p>Ways to specify: 69 70 <ol type=1 start=1> 71<li>deduced from the input file 72 </ol> 73 74 </body></html> 75 76