ARM Technical Support Knowledge Articles

OBTAINING THE MEMORY MAP OF A PROJECT

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


QUESTION

I need to find the memory map for my project. For example, where is the linker placing different code segments and how much code, data and idata memory am I using? I am calling the linker from the command line.

ANSWER

When you call the linker, you need to use the PRINT directive to generate a linker listing (map) file. For example:

BL51 MYPROG.OBJ TO MYPROG.ABS PRINT(MYPROG.M51)

will generate the file MYPROG.M51 containing the memory map, symbol table, library routines used, etc.

MORE INFORMATION

Article last edited on: 2005-07-19 10:06:30

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential