Home > Back-end >  C how to compress a text file (below 125 KB to 32 KB)
C how to compress a text file (below 125 KB to 32 KB)

Time:09-28

Hello, boys and girls,

Want to ask. I have a secp256k1 table text file with the size of 125 KB, want to ask whether there is a way to compressed to 32 KB each of the following? If you can, and how to make the program reads the compressed file?





At this table include directly, if can be compressed, then you should read sentence how to write?



Thank you pass by the great spirit of action! I am writing in the chip, the chip flash memory is 32 KB,

CodePudding user response:

The ordinary gzip, zip can only pressure to 50 KB,

CodePudding user response:


the file content?Direct compression enough
Will write a special for data compression

CodePudding user response:

Thank you,
https://github.com/micro-bitcoin/uBitcoin/blob/master/src/utility/trezor/secp256k1.table

CodePudding user response:

If compression can't solve the problem, try compile c into object file (machine), and then other c source program used directly into machine code command to call a function
You can refer to the following called machine code example
https://blog.csdn.net/bdss58/article/details/83387028
  • Related