1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>Relocatable Module Demo</TITLE> 9</HEAD> 10<BODY> 11<H1>Relocatable Module Demo</H1> 12<H2>Location</H2> 13<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/build/demos/reldemo</FONT></P> 14<H2>Compilation</H2> 15<P>Go to <CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo</CODE> and enter <CODE>make</CODE>. The executable (<CODE>elf</code> file), relocatable module (<CODE>rel</code> file), and the module string table file (<code>str</code> file) will be generated under <CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo/bin/RVL/</code>.</P> 16<H2>Execution</H2> 17<P>Copy all the generated relocatable module files and the module string table file to your game disk root directory. Go to <CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo/bin/RVL/</CODE> and execute one of the following:</P> 18<ul> 19 <li>?To simply execute an application, execute the <code>ndrun</code> script using an <code>elf</code> file as an argument. </li> 20 <li>?To debug using CodeWarrior, execute <code>ide</code> using a <code>elf</code> file as an argument.</li> 21</ul> 22 23<H2>Description</H2> 24<TABLE width="722"> 25 <TBODY> 26 <TR> 27 <TD width="109"><EM><STRONG><CODE>static.elf</CODE></STRONG></EM></TD> 28 <TD width="605">Loads and links <strong><i><code>a.rel</code></i></strong> and <code><em><strong>b.rel</strong></em></code> dynamically from the disc.</TD> 29 </TR> 30 <TR> 31 <TD width="109"><EM><STRONG><CODE>a.rel</CODE></STRONG></EM></TD> 32 <TD width="605">Creates several class A objects.</TD> 33 </TR> 34 <TR> 35 <TD width="109"><EM><STRONG><CODE>b.rel</CODE></STRONG></EM></TD> 36 <TD width="605">Creates several class B objects. Class B inherits class A.</TD> 37 </TR> 38 </TBODY> 39</TABLE> 40<H2>See Also</H2> 41<P><A target="contents" href="../toc.html#Relocatable Module System">Relocatable module APIs</A></P> 42<H2>Revision History</H2> 43<P>03/01/2006 Initial version.</P> 44</BODY> 45</HTML>