i have written a program which does a lot of very complex and
clever things. but it is very big. it is very big. how can i compress
it in the rom? like upx does on linux. how can can i decompress it.
there is no decompress function in keil.
Read-Only
Author Per Westermark
Posted 11-May-2012 10:03 GMT
Toolset C51
RE: compresion
Per Westermark
Having compressed programs in ROM only works for a processor that
copies the program into RAM before running it.
You specify a C51 architecture - so do you really have a 8051 chip
that supports copying of flash content into RAM for execution?
Read-Only
Author nat marlan
Posted 11-May-2012 10:12 GMT
Toolset C51
RE: compresion
nat marlan
hi.
i dont understand you. why copy it to ram? i mean what will it do?
the cpu runs code from rom not ram. and i will put my extreme
calculation results in ram and there will not be any space for a copy
of the rom. he said use some ddr ram for it.
Read-Only
Author Per Westermark
Posted 11-May-2012 10:38 GMT
Toolset C51
RE: compresion
Per Westermark
The processor can't run compressed code.
So architectures where compressed code are stored in flash are
decompressing that code and placing the decompressed result in RAM -
the processor then runs the program from RAM.
In short - they use the flash memory as a type of hard drive,
similar to how programs are run on a normal PC.
"he said use some ddr ram for it."
Who is "he"?
Do you really have a 8051 chip that supports DDR memory???
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.