--merge, --no_merge

This option enables or disables the merging of const strings that are placed in shareable sections by the compiler. Using --merge can reduce the size of the image if there are similarities between const strings.

For a listing of the merged const strings you can use --info=merge.

Show/hideDefault

The default is --merge.

By default, merging happens between different load and execution regions. Therefore, code from one execution or load region might use a string stored in different region. If you do not want this behavior, then do one of the following:

  • use the PROTECTED load region attribute if you are using scatter-loading

  • globally disable merging with --no_merge.

Show/hideSee also

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