We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
my program size is 14kb (pgm.uvproj) and size of hex file is 25kb. now my question is how these sizes are calulated?
Thanks in advance
They are not.
The hex file needs a bit more than two bytes for every byte of the binary program.
But the binary might contain holes that the hex file need not bother with.
So while it is common that the hex files are larger than the program size reported by the linker, there are no translation formula.
In short, the size of the hex file is irrelevant when it comes to the important question: if your program will fit or not in the available processor memory.
Thanks Per for giving me reply..
I am not saying that there shuould be any relation in between size of hex file and program size.
"I just want to know that how these size is evaluated? both .. program size and hex file size"
it's normally evaluated by counting the number of bytes in the file.
The linker already knows...
The "size" of the .HEX file depends how the linker expresses the object records as lines of byte(s). The format of the hex records is well documented.
http://www.keil.com/support/docs/1584/ www.interlog.com/.../Hexfrmt.pdf
The size of the .uvproj file has absolutely nothing to do with the size of the generated program!
Thank you all...