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 (REL) Sample Demos</TITLE>
9</HEAD>
10<BODY>
11<H1>Relocatable Module (REL) Sample Demos</H1>
12
13<H2>Location</H2>
14<P><CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo</CODE></P>
15
16<H2>Compilation</H2>
17<P>Go to the <CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo</CODE> directory and enter <CODE>make</CODE>. The executable (<CODE>elf</CODE> file), relocatable module (<CODE>rel</CODE> file), and the module string table (<CODE>str</CODE> file) will be generated in <CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo/bin/RVL/</CODE>.</P>
18
19<H2>Execution</H2>
20<P>Copy all the generated relocatable module files and the module string table file to your game disc root directory. Go to the <CODE>$REVOLUTION_SDK_ROOT/build/demos/reldemo/bin/RVL/</CODE> directory and execute one of the following.</P>
21<ul>
22<li>?To simply run the application, execute the <code>ndrun</code> script using the <code>.elf</code> file as an argument.</li>
23<li>?If you want to debug with CodeWarrior, run <CODE>ide</CODE> with the <code>.elf</code> file as an argument.</li>
24</ul>
25
26<H2>Description</H2>
27<TABLE class="demo_list" border="1" >
28  <TBODY>
29    <TR>
30<TH>static.elf</TH>
31<TD>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>
32    </TR>
33    <TR>
34<TH>a.rel</TH>
35<TD>Generates several class A objects.</TD>
36    </TR>
37    <TR>
38<TH>b.rel</TH>
39<TD>Generates several class B objects. Class B inherits class A.</TD>
40    </TR>
41  </TBODY>
42</TABLE>
43
44<H2>See Also</H2>
45<P class="reference">
46<A target="contents" href="../toc.html#Relocatable Module System">Relocatable module APIs</A>
47</P>
48
49<H2>Revision History</H2>
50<P>
512006/03/01 Initial version.<br>
52</P>
53
54<hr><p>CONFIDENTIAL</p></body>
55</HTML>