Keil™, An ARM® Company

Technical Support

C166: DETERMINING PROGRAM SIZE AT RUN-TIME


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.06

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.

Last Reviewed: Monday, October 30, 2000


Did this article provide the answer you needed?
 
Yes
No
Not Sure