6.6.9.1 --fill=options

Fill unused program memory. The format is:

--fill=[wn:]expression[@address[:end_address] | unused]

address and end_address will specify the range of program memory addresses to fill. If end_address is not provided then the expression will be written to the specific memory location at address address. The optional literal value unused may be specified to indicate that all unused memory will be filled. If none of the location parameters are provided, all unused memory will be filled. expression will describe how to fill the specified memory. The following options are available:

A single value

--fill=0x12345678@unused

Range of values

--fill=1,2,3,4,097@0x9d000650:0x9d000750

An incrementing value

--fill=7+=911@unused

By default, the linker will fill using data that is instruction-word length. For DSC devices, the default fill width is 24 bits. However, you may specify the value width using [wn:], where n is the fill value's width and n belongs to [1, 3].

Multiple fill options may be specified on the command line; the linker will always process fill options at specific locations first.