Hi,
Can anyone tell me how my code can know what size the image is in FLASH ? Is there a symbol that I can reference that shows how much space the image occupies ?
I know this information is obvious from the generated .HEX file (and it may be possible to work it out from the .MAP file). I currently have to post-process the .HEX file and patch it (updating the relevant line's checksum accordingly).
Surely there is an easier way to do this !
Note that I'm not looking for the size of the CODE segment, just the overall image size.
Any ideas ?
Thanks,
David.
"Most C compilers uses the name BSS for zero-initialized data, where BSS stands for Block Started by Symbol."
Interesting ... I remember learning years ago that it stood for 'block storage segment'.
Done a quick search, both seem to be acceptable. Neither (to me) seem particularly logical.
Why should everything be logical :)
Yes, more than one acronyme are suffering from contention as to the "original" or "true" name, since they often got invented in a more "creative" state of a developer and without being immediately documented.
The startup code only has a symbol to tell it where the BSS/ZI data starts. Normally the size isn't explicitly stored. Instead, there is a second symbol where the data ends, and the size is computed by the startup code.
This in relation to the DATA segment, where the startup code has a full set of data to copy.