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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>compstatic</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9<STYLE type="text/css">
10<!--
11.sample_source{
12  background-color : #e8e8e8;
13}
14H3{
15  color : teal;
16}
17.command_list{
18  margin-bottom : 16pt;
19}
20.command_desc{
21  }
22.command_item{
23  margin-top : 16pt;
24  background-color : #e8e8e8;
25}
26.blockquoted_table {
27  border : 1px;
28  width : 80%;
29}
30TD,TH{
31  border-color	: #c0d8d8;
32  padding       : 1pt 4pt 1pt 4pt;
33  border-width  : 1px;
34  border-style  : solid;
35}
36-->
37</STYLE>
38</HEAD>
39<BODY>
40<H1 align="left">compstatic <IMG src="../image/NTR.gif" align="middle"></H1>
41<H2>Description</H2>
42<P><FONT color="#ff0000">This command is for NITRO ROMs. See <A href="compstaticTWL.html"><CODE>compstatic.TWL</CODE></A> for details on TWL ROMs.</FONT></P>
43<P> The <CODE>compstatic</CODE> tool compresses the ROM image of the static region to load with the NITRO IPL application. Compressing enables you to save ROM capacity.</P>
44<H2>Using the Tool</H2>
45<H3>Start Command</H3>
46<PRE><CODE>% compstatic [-d] -9 [-c] [-a[FILE]] [-F|-eSUFFIX] STATICMODULE OVERLAYDEFS [OVERLAYTABLE]</CODE></PRE>
47<P>or</P>
48<PRE><CODE>% compstatic [-d] -9 [-c] [-a[FILE]] [-F|-eSUFFIX] -f RESPONSE_FILE</CODE></PRE>
49<P> Compresses file of ROM static region specified with <CODE>STATICMODULE/OVERLAYDEFS</CODE> while regarding it as ARM9 code. The decompression process is integrated with <CODE>crt0.o</CODE> and the FS library of TWL-SDK, so the application programmer does not need to add any additional operation.</P>
50<P>Rather than designating the file names of the compression process target execution file and the overlay process file (<CODE>STATICMODULE OVERLAYDEFS</CODE> and <CODE>OVERLAYTABLE</CODE>) with a command-line argument, the <CODE>&ndash;f</CODE> option allows designation via a file (<CODE>RESPONSE_FILE</CODE>) where the filename of the process target is registered. The contents of this <CODE>RESPONSE_FILE</CODE> to which the <CODE>-f</CODE> option is applied terminate the actual <CODE>STATICMODULE, OVERLAYDEFS, OVERLAYTABLE</CODE> filenames with a <CODE>'\0'</CODE> and are stored in order. The files designated at this time are considered to be designated with a relative path from the directory where <CODE>RESPONSE_FILE</CODE> is located.</P>
51<P>When the <CODE>-c</CODE> option is specified, also compresses the overlay file specified by <CODE>OVERLAYTABLE</CODE>.</P>
52<P>Control the post-compression filenames with the <CODE>-e</CODE> and <CODE>-F</CODE> options. If these options are not in place, compression results are output to a file of the original filename but with the extension <code>_LZ</code> attached to the end. Use the <CODE>-e</CODE> option when you want to change this <CODE>_LZ</CODE> extension. Also, if the the <CODE>-F</CODE> option is designated, the original file is overwritten with the compressed file.</P>
53<P>The <CODE>-a</CODE> option enables you to fill the static region with the overlay digest value. Use this to confirm the validity of the overlay module that performs wireless transfer. It is necessary to allocate a region to embed the digest value in advance. When you use the <CODE>ARM9-TS-C.lcf.template</CODE> to create an LCF file, a linker script is generated that allocates the necessary region. See the description of <A href="makelcf.html"><CODE>makelcf</CODE></A> for more information on creating an LCF file.</P>
54<P>The <CODE>-d</CODE> option is for outputting  <CODE>compstatic</CODE> debugging messages. It outputs debugging messages during execution. Normally there is no need to specify it.</P>
55<P> The library on the uncompressed side is currently not supported and thus cannot be used for the compression process of the ARM7's static region.</P>
56<P> When using TWL-SDK's <CODE>make</CODE> environment, the ARM9 static region and the overlay compression process are available when some value is defined in the environmental variable <CODE>TWL_COMPRESS</CODE>.</P>
57<H2>Location</H2>
58<P><CODE>$TwlSDK/tools/bin/compstatic.exe</CODE></P>
59<H2>See Also</H2>
60<P><A href="makerom.html"><CODE>makerom</CODE></A></P>
61<H2>Revision History</H2>
62<P>
632008/10/28 Corrected and revised the description of the <CODE>-a</CODE> option.<BR> 2006/05/16 Added a description of the <CODE>-f</CODE> option.<BR> 2004/09/21 Initial version.</P>
64<hr><p>CONFIDENTIAL</p></body>
65</HTML>