ARM Technical Support Knowledge Articles

DETERMINING PROGRAM SIZE AT RUN-TIME

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

Is there a way to determine the size of a program at run-time or compile-time?

ANSWER

No. Unfortunately, there is no way to do this with the tools.

You could locate a varaible at the end of your program, however, this isn't automatic and would require that you locate all of the variables in your program and then your "EOF" variable last.

Another thing to try is to fill your HEX file with a pattern and scan the memory for that pattern.

Article last edited on: 2000-10-30 00:00:00

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