10.4.2. Output from -info Sizes option

The output from the -info Sizes option is shown in Example 10.3.

Example 10.3.  Sample output

object file				code		inline		inline		`const'		RW		0-Init		debug
				size		data		strings		data		data		data		data
init.o				228		0		0		0		0		0		0
ex.o				184		28		356		16		4		320		0
Object totals				412		28		356		16		4		320		0

The required RAM size is the sum of the RW data (4) and the 0-Init data (320), in this case 324 bytes.

The required ROM size is the sum of the code size (412), the inline data size (28), the inline strings (356), the const data (16) and the RW data (4). In this example, the required ROM size is 816 bytes.

The RW data is included in both the ROM and the RAM counts. This is because the ROM contains the initialization values for the RAM data.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential