??? 02/07/05 09:59 Read: times |
#86732 - Tools? Responding to: ???'s previous message |
Lee Kien said:
i don't know whether my code is enough to be stored in it's 4k memory. You don't need to worry about filling the ROM! Does anyone have a way to see how big my code is in the 8051? This information will be provided by whatever tools you're using. The Keil A51 Assembler and C51 compiler both produce a Listing file for each module that includes details of data & code sizes; The Keil BL51 and LX51 Linkers produce a Listing file (or "Map" file) that includes overall details of data & code sizes for the whole project. I'm sure all tools will have similar arrangements - see the appropriate Manuals for details. My text code is 80k in length, There is no correlation whatsoever between source code size & the resulting object code size! and after converting it to hex, it is 13k in size. Is that the size of the file on your hard drive? The Intel Hex format encodes each byte as two characters, and adds some extra overhead as well - so your actual executable is probably no bigger than ~7K I think it's quite likely, though, that a 13K Hex file is going to be too big for a 4K device? BTW: Note that a lowercase 'k' is 1000 (103); an uppercase 'K' is 1024 (210). |
Topic | Author | Date |
Finding out the ROM limit | 01/01/70 00:00 | |
Tools? | 01/01/70 00:00 | |
More on Intel Hex - gaps! | 01/01/70 00:00 | |
k vs K | 01/01/70 00:00 | |
Apples & Pears! | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
Err..., no | 01/01/70 00:00 | |
Forgot to ask - LST file? | 01/01/70 00:00 | |
d51 | 01/01/70 00:00 | |
Need clarification | 01/01/70 00:00 | |
More Clarification Needed! | 01/01/70 00:00 | |
Info | 01/01/70 00:00 | |
More Clarification Needed! | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
Unlikely | 01/01/70 00:00 | |
suspect | 01/01/70 00:00 | |
Info | 01/01/70 00:00 | |
Got there at last! | 01/01/70 00:00 | |
Got it :D | 01/01/70 00:00 | |
Too big! | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
7 days | 01/01/70 00:00 | |
I suggest this | 01/01/70 00:00 | |
something amiss | 01/01/70 00:00 | |
the whole LST file | 01/01/70 00:00 | |
LST file | 01/01/70 00:00 | |
and the story is | 01/01/70 00:00 | |
well.... | 01/01/70 00:00 | |
7 days well spent! | 01/01/70 00:00 | |
of course it does | 01/01/70 00:00 | |
Noted | 01/01/70 00:00 | |
so | 01/01/70 00:00 | |
hexmap![]() | 01/01/70 00:00 |