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 - LinkListFixed0</title> 9</head> 10 11<body> 12 13<H1>RSO Sample Demo - LinkListFixed0</H1> 14 15<H2>Location</H2> 16<p><code>$REVOLUTION_SDK_ROOT/build/demos/rsodemo/LinkListFixed0</code></p> 17 18<H2>Overview</H2> 19<p> 20An example program showing a partial memory release of relocatable module and its reuse as bss area. 21</p> 22 23<H2>Description</H2> 24<p> 25The area to be allocated is determined based on the released area and the size necessary for bss, and is resized to the needed value.<br>When the area size is increasing, resize before <code><a href="../RSOLinkList.html">RSOLinkListFixed</a></code>, and if decreasing, resize afterwards.<br> 26</p> 27<p> 28When the area is not used as a bss area, resize after <code><a href="../RSOLinkList.html">RSOLinkListFixed</a></code> process. 29</p> 30<p> 31When a module area is partially released, the module memory copy cannot be reused even after link is removed. 32</p> 33<H2>Release Stage</H2> 34<p> 35In this example, the release stage uses <code><a href="../RSOFixedLevel.html">RSO_FL_INTERNAL</a></code>, but depending on the dynamic module, extra memory space can be conserved by specifying <code><a href="../RSOFixedLevel.html">RSO_FL_EXTERNAL</a></code> in its place.<br>However, when <code>RSO_FL_EXTERNAL</code> is specified, the module functions linked afterwards cannot be referenced.<br> 36</p> 37<p> 38While module B can be specified <code>RSO_FL_EXTERNAL</code> without any problems, if <code>RSO_FL_EXTERNAL</code> is specified for module A, the module B function called from module A will be shown to be unresolved (<code>_unresolved</code>).<br>Use <code>RSO_FL_EXTERNAL</code> only when absolutely sure that the module will not be referenced after being linked. 39</p> 40<H2>See Also</H2> 41<p> 42<a href="./demos.html">Sample List</a><br> 43<code><a href="../RSOListInit.html">RSOListInit</a></code>, 44<code><a href="../RSOLinkList.html">RSOLinkListFixed</a></code>, 45<code><a href="../RSOUnLinkList.html">RSOUnLinkList</a></code>, 46<code><a href="../RSOFindExportSymbolAddr.html">RSOFindExportSymbolAddr</a></code>, 47<code><a href="../RSOIsImportSymbolResolvedAll.html">RSOIsImportSymbolResolvedAll</a></code>, 48</p> 49<H2>Revision History</H2> 50<p>2006/06/14 Initial version.</p> 51 52<hr><p>CONFIDENTIAL</p></body> 53</HTML> 54