--datacompressor=opt

This option enables you to specify one of the supplied algorithms for RW data compression. If you do not specify a data compression algorithm, the linker chooses the most appropriate one for you automatically. In general, it is not necessary to override this choice.

Show/hideSyntax

--datacompressor=opt

Where opt is one of the following:

on

Enables RW data compression to minimize ROM size.

off

Disables RW data compression.

list

Lists the data compressors available to the linker.

id

id is a data compression algorithm:

Table 1. Data compressor algorithms

idCompression algorithm
0run-length encoding
1run-length encoding, with LZ77 on small-repeats
2complex LZ77 compression

Specifying a compressor adds a decompressor to the code area. If the final image does not have compressed data, the decompressor is not added.

Show/hideDefault

The default is --datacompressor=on.

Show/hideSee also

Copyright © 2008, 2011-2012 ARM. All rights reserved.ARM DUI 0458C
Non-ConfidentialID062912