9
3

README.TXT 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. FastLZ - lightning-fast lossless compression library
  2. Author: Ariya Hidayat
  3. Official website: http://www.fastlz.org
  4. FastLZ is distributed using the MIT license, see file LICENSE
  5. for details.
  6. FastLZ consists of two files: fastlz.h and fastlz.c. Just add these
  7. files to your project in order to use FastLZ. For information on
  8. compression and decompression routines, see fastlz.h.
  9. A simple file compressor called 6pack is included as an example
  10. on how to use FastLZ. The corresponding decompressor is 6unpack.
  11. To compile using GCC:
  12. gcc -o 6pack 6pack.c fastlz.c
  13. gcc -o 6unpack 6unpack.c fastlz.c
  14. To compile using MinGW:
  15. mingw32-gcc -o 6pack 6pack.c fastlz.c
  16. mingw32-gcc -o 6unpack 6unpack.c fastlz.c
  17. To compile using Microsoft Visual C++:
  18. cl 6pack.c fastlz.c
  19. cl 6unpack.c fastlz.c
  20. To compile using Borland C++:
  21. bcc32 6pack.c fastlz.c
  22. bcc32 6unpack.c fastlz.c
  23. To compile using OpenWatcom C/C++:
  24. cl386 6pack.c fastlz.c
  25. cl386 6unpack.c fastlz.c
  26. To compile using Intel C++ compiler for Windows:
  27. icl 6pack.c fastlz.c
  28. icl 6unpack.c fastlz.c
  29. To compile using Intel C++ compiler for Linux:
  30. icc -o 6pack 6pack.c fastlz.c
  31. icc -o 6unpack 6unpack.c fastlz.c
  32. To compile 6pack using LCC-Win32:
  33. lc 6pack.c fastlz.c
  34. lc 6unpack.c fastlz.c
  35. To compile 6pack using Pelles C:
  36. pocc 6pack.c
  37. pocc 6unpack.c
  38. pocc fastlz.c
  39. polink 6pack.obj fastlz.obj
  40. polink 6unpack.obj fastlz.obj
  41. For speed optimization, always use proper compile flags for optimization options.
  42. Typical compiler flags are given below:
  43. * GCC (pre 4.2): -march=pentium -O3 -fomit-frame-pointer -mtune=pentium
  44. * GCC 4.2 or later: -march=pentium -O3 -fomit-frame-pointer -mtune=generic
  45. * Digital Mars C/C++: -o+all -5
  46. * Intel C++ (Windows): /O3 /Qipo
  47. * Intel C++ (Linux): -O2 -march=pentium -mtune=pentium
  48. * Borland C++: -O2 -5
  49. * LCC-Win32: -O
  50. * Pelles C: /O2