ARM Compiler toolchain Using the Linker - ARM Information Center
ARM Compiler toolchain Using the Linker - ARM Information Center
ARM Compiler toolchain Using the Linker - ARM Information Center
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5.12 Working with RW data compression<br />
5.12.1 See also<br />
When working with RW data compression:<br />
<strong>Using</strong> linker optimizations<br />
• Use <strong>the</strong> linker option --map to see where compression has been applied to regions in your<br />
code.<br />
• The linker in RealView Compilation Tools (RVCT) v4.0 and later turns off RW<br />
compression if <strong>the</strong>re is a reference from a compressed region to a linker-defined symbol<br />
that uses a load address.<br />
• If you are using an <strong>ARM</strong> processor with on-chip cache, enable <strong>the</strong> cache after<br />
decompression to avoid code coherency problems.<br />
Compressed data sections are automatically decompressed at run time, providing __main is<br />
executed, using code from <strong>the</strong> <strong>ARM</strong> libraries. This code must be placed in a root region. This<br />
is best done using InRoot$$Sections in a scatter file.<br />
If you are using a scatter file, you can specify that a load or execution region is not to be<br />
compressed by adding <strong>the</strong> NOCOMPRESS attribute.<br />
Concepts<br />
• Optimization with RW data compression on page 5-13<br />
• How <strong>the</strong> linker chooses a compressor on page 5-14<br />
• How compression is applied on page 5-16<br />
• Load$$ execution region symbols on page 7-7<br />
• Chapter 8 <strong>Using</strong> scatter files.<br />
Developing Software for <strong>ARM</strong> ® Processors:<br />
• Chapter 3 Embedded Software Development.<br />
Tasks<br />
• Overriding <strong>the</strong> compression algorithm used by <strong>the</strong> linker on page 5-15.<br />
Reference<br />
<strong>Linker</strong> Reference:<br />
• --map, --no_map on page 2-108<br />
• Chapter 4 Formal syntax of <strong>the</strong> scatter file.<br />
<strong>ARM</strong> DUI 0474C Copyright © 2010-2011 <strong>ARM</strong>. All rights reserved. 5-17<br />
ID080411 Non-Confidential