This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Variable for max code address used?

Hello All,

I am trying to find out the maximum code address used after linking. Is there a global that the linker produces that contains the code size?

This is to speed up a program checksum calculation routine which can ignore the unused area after the end of code.

At present the code size is 256K, but can grow to 512K, I need the time to be as short as possible.

Obviously as time goes on the routine will take longer to execute, but initially will be shorter.

Thanks in advance.