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
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