Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too much memory is required for usage on embedded #6

Open
GoogleCodeExporter opened this issue Nov 1, 2015 · 2 comments
Open

Too much memory is required for usage on embedded #6

GoogleCodeExporter opened this issue Nov 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. ./lzhamtest
2. ./lzhamtest d patch.lhz patch

What is the expected output? What do you see instead?
1:
LZHAM simple memory to memory compression test
Error: Compression test failed with status 6!

2:
Testing: Streaming decompression
/home/tbl/lzham/lzhamdecomp/lzham_mem.cpp(134): Assertion failed: 
"lzham_malloc: out of memory"
Error: Failed initializing decompressor!

What version of the product are you using? On what operating system?
Newest svn revision. Linux.

Please provide any additional information below.
I changed the asm "pause" in lzham_platform.h to "NOP" to make it compile for 
ARM.
The device is a PXA255 (armv5te) with 64 MiB of memory of which about 60 is 
usable.

Original issue reported on code.google.com by mrthomas...@gmail.com on 19 Jan 2015 at 10:01

@GoogleCodeExporter
Copy link
Author

Thanks - did you reduce the size of the dictionary using -dX, like -d19? v1.0 
will also naturally use less memory for decompression because I've eliminated 
over 120 Huffman tables.

Original comment by richge...@gmail.com on 19 Jan 2015 at 3:47

@GoogleCodeExporter
Copy link
Author

Yes I tried -d19 and -d15. Note that xz is able to decompress on the unit.

Original comment by mrthomas...@gmail.com on 20 Jan 2015 at 7:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant