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

Difference in size of hex file on computer and one being loaded in programmer

hello,
I have made a program in assembly language (using keil) . After creating the hex file for the project in Intel hex format the size is coming around 348 bytes. However when I am loading this file in my programmer for burning the size is coming to be 118 bytes. how do i fix this??
Programmer is mini-usb interface universal programmer( locally made)

Parents
  • Remember that Windows reports the size occupied by the file on the disk - which may be larger than the content of the file (because disk space is allocated in "chunks")...

    Pardon? For all versions of Windows I've used, I've not seen that. Not tried Windows 8 because it looks shite. Looking at explorer, the value is simply rounded to KB or MB etc. If you look at properties, you normally get a report of size and size on disk.

    Besides, a chunk size of 384 would be a very unlikely value.

    That said, I know what you're trying to say. Just had to highlight that questionable statement.

Reply
  • Remember that Windows reports the size occupied by the file on the disk - which may be larger than the content of the file (because disk space is allocated in "chunks")...

    Pardon? For all versions of Windows I've used, I've not seen that. Not tried Windows 8 because it looks shite. Looking at explorer, the value is simply rounded to KB or MB etc. If you look at properties, you normally get a report of size and size on disk.

    Besides, a chunk size of 384 would be a very unlikely value.

    That said, I know what you're trying to say. Just had to highlight that questionable statement.

Children
  • The value shown in the 'Size' column in Windows Explorer GUI view on XP is always rounded to some "convenient" figure for display.

    If you do 'Properties', it lists two sizes; viz, "Size" (the size of the actual file content) and "Size on disk" (the size of the disk allocation units used).

    eg, I have a file where explorer lists the "Size" as "3K" in the GUI view and, in 'Properties, gives "Size" as "2.08KB (2,130 bytes)" and "Size on disk" as "4.00K (4,096 BYTES)"

    So, depending on where you look, you can get 3 different numbers for the same file!

    "a chunk size of 384 would be a very unlikely value"

    Granted - that is true.