blob: fdd5366819cc87b5206530ee6ea161d68201158d [file] [log] [blame]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>4.2. Running Applications on the Target System</title><link rel="stylesheet" href="cs.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Sourcery G++ Lite"><link rel="up" href="chap-building.html" title="Chapter 4. Using Sourcery G++ from the Command Line"><link rel="prev" href="chap-building.html" title="Chapter 4. Using Sourcery G++ from the Command Line"><link rel="next" href="sec-remote-debugging.html" title="4.3. Running Applications from GDB"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">4.2. Running Applications on the Target System</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="chap-building.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Using Sourcery G++ from the Command Line</th><td width="20%" align="right"> <a accesskey="n" href="sec-remote-debugging.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id279201"></a>4.2. Running Applications on the Target System</h2></div></div></div><p>
You may need to install the Sourcery G++ runtime libraries
<span>and dynamic linker</span>
on the target system before you can run your application.
Refer to <a class="xref" href="chap-target.html" title="Chapter 3. Sourcery G++ Lite for ARM GNU/Linux">Chapter 3, &#8220;Sourcery G++ Lite for ARM GNU/Linux&#8221;</a> for specific instructions.
</p><p>
To run your program on a
<span>GNU/Linux</span>
target system, use the command:
</p><pre class="screen">&gt; factorial</pre><p>
You should see:
</p><pre class="screen">factorial(0) = 1
factorial(1) = 1
factorial(2) = 2
factorial(3) = 6
factorial(4) = 24
factorial(5) = 120
factorial(6) = 720
factorial(7) = 5040
factorial(8) = 40320
factorial(9) = 362880</pre><p>
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="chap-building.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="chap-building.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sec-remote-debugging.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 4. Using Sourcery G++ from the Command Line </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 4.3. Running Applications from GDB</td></tr></table></div></body></html>