Keil™, An ARM® Company

Discussion Forum

Program size calculation

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Cactus Blip
Posted
7-Jan-2008 00:50
Toolset
C166
New! Program size calculation

Hello all,
I am a little confused: The generated HEX file size of my program is double the size of the sum of all program conponents as they appear in the generated memory map.
How can this be?

Thanks in advance

Read-Only
Author
Andy Neil
Posted
7-Jan-2008 02:32
Toolset
C166
New! Hex file size has little to do with Program size!

Look at how the Intel Hex format works:
http://www.keil.com/support/docs/1584.htm

You will see that an Intel Hex-format file cannot possible be less than twice the size of the binary data that it represents - and, in fact, must be somewhat larger due to the overheads of the file format!

See also: http://www.keil.com/support/docs/3250.htm

Read-Only
Author
Cactus Blip
Posted
7-Jan-2008 02:41
Toolset
C166
New! RE: Hex file size has little to do with Program size!

Andy,
Thanks a lot!

your Cactus :)

Next Thread | Thread List | Previous Thread Start a Thread | Settings