1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<title>RSO Sample Demo - LinkList</title> 9</head> 10 11<body> 12 13<H1>RSO Sample Demo - LinkList</H1> 14 15<H2>Location</H2> 16<p><code>$REVOLUTION_SDK_ROOT/build/demos/rsodemo/LinkList</code></p> 17 18<H2>Overview</H2> 19<p> 20This is an example of the basic use of the RSO.<br>The dynamic (relocatable) modules, module A (<CODE>a.rso</CODE>) and module B (<CODE>b.rso</CODE>), are linked together. 21</p> 22 23<H2>Description</H2> 24<p> 25This demo program allows you to confirm the referencing of static module from dynamic module and referencing between dynamic modules. 26</p> 27<p> 28An example is also shown for referencing the functions and variables of dynamic modules from static modules. (Example: <code>RSOResolvedModuleA</code>)<br>To reference dynamic module function from static module, the function address is acquired from the dynamic module information and the referenced function symbol using <code><a href="../RSOFindExportSymbolAddr.html">RSOFindExportSymbolAddr</a></code>.<br><B>Note:</B> When a dynamic module is unlinked, please set its pointers as unresolved. (Example: <code>RSOUnresolvedModuleA</code>) 29</p> 30<p> 31Typically, <code>prolog</code> should be called for each module links. Since module A and module B reference each other in this example, it is called only after both sides are linked.<br>This is true for <code>epilog</code> as well and will unlink after <code>epilog</code> of both modules is completed.<br> 32</p> 33<H2>See Also</H2> 34<p> 35<a href="./demos.html">Demo Program List</a><br> <code><a href="../RSOListInit.html">RSOListInit</a></code>, <code><a href="../RSOLinkList.html">RSOLinkList</a></code>, <code><a href="../RSOUnLinkList.html">RSOUnLinkList</a></code>, <code><a href="../RSOFindExportSymbolAddr.html">RSOFindExportSymbolAddr</a></code>, <code><a href="../RSOIsImportSymbolResolvedAll.html">RSOIsImportSymbolResolvedAll</a></code> 36</p> 37<H2>Revision History</H2> 38<p>2006/06/14 Initial version.</p> 39 40<hr><p>CONFIDENTIAL</p></body> 41</HTML> 42