Keil Logo Arm Logo

Discussion Forum

compresion

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
nat marlan
Posted
11-May-2012 09:23 GMT
Toolset
C51
New! compresion

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.

Read-Only
Author
Per Westermark
Posted
11-May-2012 10:03 GMT
Toolset
C51
New! RE: compresion

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
New! RE: compresion

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
New! RE: compresion

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???

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.