BCJ(Branch-Call-Jump) filter for python
 
 
 
Go to file
Hiroshi Miura 40ea774934
Release v1.0.1
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2022-08-05 08:41:48 +09:00
issue_template Update issue template 2022-08-03 09:04:43 +09:00
src Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00
tests Test: ziping test data 2022-08-03 09:04:43 +09:00
.gitignore first import 2021-10-10 12:41:34 +09:00
CMakeLists.txt Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00
Changelog.rst Release v1.0.1 2022-08-05 08:41:48 +09:00
LICENSE first import 2021-10-10 12:41:34 +09:00
MANIFEST.in Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00
README.rst Update README: improve copyright description 2022-08-03 12:24:48 +02:00
azure-pipelines.yml Update azure pipelines release settings 2022-08-05 08:40:31 +09:00
pyproject.toml Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00
setup.cfg Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00
setup.py Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00

README.rst

BCJ(Branch-Call-Jump) filter for python

image

image

image

image

In data compression, BCJ, short for Branch-Call-Jump, refers to a technique that improves the compression of machine code of executable binaries by replacing relative branch addresses with absolute ones. This allows a LZMA compressor to identify duplicate targets and archive higher compression rate.

BCJ is used in 7-zip compression utility as default filter for executable binaries.

pybcj is a python bindings with BCJ implementation by C language. The C codes are derived from p7zip, portable 7-zip implementation. pybcj support Intel/Amd x86/x86_64, Arm/Arm64, ArmThumb, Sparc, PPC, and IA64.

Development status

A development status is considered as Beta state.

Installation

As usual, you can install pybcj using python standard pip command.

pip install pybcj

Alternatively, one can also use conda:

conda install -c conda-forge pybcj

WARNING

  • When use it on MSYS2/Mingw64 environment, please set environment variable SETUPTOOLS_USE_DISTUTILS=stdlib to install.

License