[En-Nut-Discussion] httserv - size
Hugo Simon
hugo.simon at gmx.de
Tue Feb 8 20:55:21 CET 2005
Hi Amit
The hex file ist not binary. If you look into the file using a text editor
(or the cat command) you will see a mass of hex digits. The programmer
software decodes this into the real bytes of the code. Since each byte is
show as two hex digits (characters) the file size doubles compared with the
real size of the code. Then there are a couple of other informations in the
hex file (checksum, start and stop characters, linefeeds and so on) which
blows up the filesize again.
You can aproximately say a hex file is good double the size of the real
code.
You can see the real code size in the linker output.
Hope that helps
bye
Thorsten
----- Original Message -----
From: "amit khandelwal" <khandelwal.amit at gmail.com>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Sent: Tuesday, February 08, 2005 8:33 PM
Subject: [En-Nut-Discussion] httserv - size
> Hello,
> The hardware manual of 1.3 Rev F, says that we have 128KB of Flash
> ROM and 4KB of EEPROM and 32KB of SRAM. I see the size of httpserv.hex
> as 171KB on my linux box. I am not able to understand why this is
> so??? Can somebody please tell me why this is? Also, in the code of
> httpserv.c there is a use of "static prog_char" and the comment says
> that C programming for flash microcontrollers will store this is in
> the Flash ROM. Any good tutorial which I can refer for such details?
>
> Thanks!
> Amit Khandelwal
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
More information about the En-Nut-Discussion
mailing list