9.4.5 --memory-usage

Specify FLASH and Data memory usage. Useful for co-resident applications.

Enables the writing of two data tables, one for FLASH and one for data memory. Each table is NULL terminated. Each ROW contains a pair of values in FLASH, the first is the start address of the consumed memory and the second is the last address.

The FLASH table can be accessed via the global symbol __ROM_USAGE and the RAM table can be accessed with the global symbol __RAM_USAGE. The symbols can be accessed using tblrd instructions or any other access method that can read the upper byte of FLASH.