1 <html> 2 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 4 <title>11.README.mips</title> 5 <link rel="stylesheet" type="text/css" href="vg_basic.css"> 6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7 <link rel="home" href="index.html" title="Valgrind Documentation"> 8 <link rel="up" href="dist.html" title="Valgrind Distribution Documents"> 9 <link rel="prev" href="dist.readme-android_emulator.html" title="10.README.android_emulator"> 10 <link rel="next" href="dist.readme-solaris.html" title="12.README.solaris"> 11 </head> 12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13 <div><table class="nav" width="100%" cellspacing="3" cellpadding="3" border="0" summary="Navigation header"><tr> 14 <td width="22px" align="center" valign="middle"><a accesskey="p" href="dist.readme-android_emulator.html"><img src="images/prev.png" width="18" height="21" border="0" alt="Prev"></a></td> 15 <td width="25px" align="center" valign="middle"><a accesskey="u" href="dist.html"><img src="images/up.png" width="21" height="18" border="0" alt="Up"></a></td> 16 <td width="31px" align="center" valign="middle"><a accesskey="h" href="index.html"><img src="images/home.png" width="27" height="20" border="0" alt="Up"></a></td> 17 <th align="center" valign="middle">Valgrind Distribution Documents</th> 18 <td width="22px" align="center" valign="middle"><a accesskey="n" href="dist.readme-solaris.html"><img src="images/next.png" width="18" height="21" border="0" alt="Next"></a></td> 19 </tr></table></div> 20 <div class="chapter"> 21 <div class="titlepage"><div><div><h1 class="title"> 22 <a name="dist.readme-mips"></a>11.README.mips</h1></div></div></div> 23 <div class="literallayout"><p><br> 24 <br> 25 Supportedplatforms<br> 26 -------------------<br> 27 -MIPS32andMIPS64platformsarecurrentlysupported.<br> 28 -Bothlittle-endianandbig-endiancoresaresupported.<br> 29 -MIPSDSPASEonMIPS32platformsissupported.<br> 30 <br> 31 <br> 32 BuildingVforMIPS<br> 33 -------------------<br> 34 -Nativebuildisavailableforallsupportedplatforms.Thebuildsystem<br> 35 expectsthatnativeGCCisconfiguredcorrectlyandoptimizedfortheplatform.<br> 36 Yet,thismaynotbethecasewithsomeDebiandistributionswhichconfigure<br> 37 GCCtocompileto"mips1"bydefault.Dependingonatargetplatform,using<br> 38 CFLAGS="-mips32r2",CFLAGS="-mips32"orCFLAGS="-mips64"or<br> 39 CFLAGS="-mips64-mabi=64"willdothetrickandcompileValgrindcorrectly.<br> 40 <br> 41 -Useofcross-toolchainissupportedaswell.<br> 42 -Exampleofconfigurelineandadditionalconfigureoptions:<br> 43 <br> 44 $./configure--host=mipsel-linux-gnu--prefix=<path_to_install_directory><br> 45 <br> 46 *--host=mips-linux-gnuisnecessaryonlyifValgrindisbuiltonplatform<br> 47 otherthenMIPS,toolsforbuildingMIPSapplicationhavetobeinPATH.<br> 48 <br> 49 *--host=mips-linux-gnuisnecessaryifyoucompileitwithcrosstoolchain<br> 50 compilerforbigendianplatform.<br> 51 <br> 52 *--host=mipsel-linux-gnuisnecessaryifyoucompileitwithcrosstoolchain<br> 53 compilerforlittleendianplatform.<br> 54 <br> 55 *--build=mips-linuxisneededifyouwanttobuilditforMIPS32on64-bit<br> 56 MIPSsystem.<br> 57 <br> 58 *IfyouarecompilingValgrindformips32withgccversionolderthen<br> 59 gcc(GCC)4.5.1,youmustspecifyCFLAGS="-mips32r2-mplt",e.g.<br> 60 <br> 61 ./configure--prefix=<path_to_install_directory><br> 62 CFLAGS="-mips32r2-mplt"<br> 63 <br> 64 <br> 65 Limitations<br> 66 -----------<br> 67 -Somegdbtestswillfailwhengdb(GDB)olderthan7.5isusedandgdbis<br> 68 notcompiledwith'--with-expat=yes'.<br> 69 -YoucannotcompiletestsforDSPASEifyouareusinggcc(GCC)older<br> 70 then4.6.1duetoabuginthetoolchain.<br> 71 -OlderGCCmayhaveissueswithsomeinlineassemblyblocks.Getatoolchain<br> 72 basedonnewerGCCversions,ifpossible.<br> 73 <br> 74 </p></div> 75 </div> 76 <div> 77 <br><table class="nav" width="100%" cellspacing="3" cellpadding="2" border="0" summary="Navigation footer"> 78 <tr> 79 <td rowspan="2" width="40%" align="left"> 80 <a accesskey="p" href="dist.readme-android_emulator.html"><<10.README.android_emulator</a></td> 81 <td width="20%" align="center"><a accesskey="u" href="dist.html">Up</a></td> 82 <td rowspan="2" width="40%" align="right"><a accesskey="n" href="dist.readme-solaris.html">12.README.solaris>></a> 83 </td> 84 </tr> 85 <tr><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td></tr> 86 </table> 87 </div> 88 </body> 89 </html> 90