We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi.
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.
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?
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.
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???