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, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 132000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 14Free Software Foundation, Inc. 15 16Permission is granted to copy, distribute and/or modify this document 17under the terms of the GNU Free Documentation License, Version 1.3 18or any later version published by the Free Software Foundation; 19with no Invariant Sections, with no Front-Cover Texts, and with no 20Back-Cover Texts. A copy of the license is included in the 21section entitled ``GNU Free Documentation License''. 22 23--> 24<meta http-equiv="Content-Style-Type" content="text/css"> 25<style type="text/css"><!-- 26 pre.display { font-family:inherit } 27 pre.format { font-family:inherit } 28 pre.smalldisplay { font-family:inherit; font-size:smaller } 29 pre.smallformat { font-family:inherit; font-size:smaller } 30 pre.smallexample { font-size:smaller } 31 pre.smalllisp { font-size:smaller } 32 span.sc { font-variant:small-caps } 33 span.roman { font-family:serif; font-weight:normal; } 34 span.sansserif { font-family:sans-serif; font-weight:normal; } 35--></style> 36<link rel="stylesheet" type="text/css" href="../cs.css"> 37</head> 38<body> 39<div class="node"> 40<a name="Architecture-Selection"></a> 41<p> 42Previous: <a rel="previous" accesskey="p" href="Target-Selection.html#Target-Selection">Target Selection</a>, 43Up: <a rel="up" accesskey="u" href="Selecting-the-Target-System.html#Selecting-the-Target-System">Selecting the Target System</a> 44<hr> 45</div> 46 47<h3 class="section">18.2 Architecture Selection</h3> 48 49<p>An <dfn>architecture</dfn> is a type of <span class="sc">cpu</span> on which an object file is 50to run. Its name may contain a colon, separating the name of the 51processor family from the name of the particular <span class="sc">cpu</span>. 52 53 <p>The command to list valid architecture values is ‘<samp><span class="samp">objdump -i</span></samp>’ (the 54second column contains the relevant information). 55 56 <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>’. 57 58<h4 class="subheading"><samp><span class="command">objdump</span></samp> Architecture</h4> 59 60<p>Ways to specify: 61 62 <ol type=1 start=1> 63<li>command line option: <samp><span class="option">-m</span></samp> or <samp><span class="option">--architecture</span></samp> 64 65 <li>deduced from the input file 66 </ol> 67 68<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> 69 70<p>Ways to specify: 71 72 <ol type=1 start=1> 73<li>deduced from the input file 74 </ol> 75 76 </body></html> 77 78