Keil Logo

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
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.