| ??? 06/21/01 13:55 Read: times |
#12698 - RE: Any way to compress a program... |
Exactly what are you wanting to do? Read a file and then copy it to FLASH? So you want the file as small as possible? I assume that the file is 8051(52) executable? Is the source Keil compatible? You might try our CodeCompressor51. We have customer's projects that the executable was as much as 35% smaller after CC51 than just the Keil compiler optimizations.
Also if I understand your environment this is being written into FLASH memory, Is it part of the same program that resides in the ROM area or a separate program entirely? Is it an extension of the base 64KB of CODE space or overlaid RAM accessed in Von Neumann fashion. As to 8051 derivatives that don't have MOVX instructions I seem to recall that the Philips 751 family has removed this instruction, but all of the larger derivatives would have them. Bryan Whitton American Raisonance 877-315-0792 Martin wrote: ------------------------------- before its put into the flash EPROM. This could be difficult or not work. Still it is better to put a function in that generates the output by computation rather than a look up table. I'm wondering about the same not for functions but for the code itself. Presumably, this would be related to file compresion on disks. I think my 8052 does not have a movx? instruction wich could present more problems. I'm intested in supercompact code for now. 10 to 20 lines maybee 40. The 20 lines should behave like 40 lines or 60. Intresting. |



