|
6 | 6 | .\" This file has been put into the public domain.
|
7 | 7 | .\" You can do whatever you want with this file.
|
8 | 8 | .\"
|
9 |
| -.TH XZ 1 "2024-01-22" "Tukaani" "XZ Utils" |
| 9 | +.TH XZ 1 "2024-01-23" "Tukaani" "XZ Utils" |
10 | 10 | .
|
11 | 11 | .SH NAME
|
12 | 12 | xz, unxz, xzcat, lzma, unlzma, lzcat \- Compress or decompress .xz and .lzma files
|
@@ -1866,14 +1866,38 @@ Since the BCJ-filtered data is usually compressed with LZMA2,
|
1866 | 1866 | the compression ratio may be improved slightly if
|
1867 | 1867 | the LZMA2 options are set to match the
|
1868 | 1868 | alignment of the selected BCJ filter.
|
1869 |
| -For example, with the IA-64 filter, it's good to set |
1870 |
| -.B pb=4 |
1871 |
| -or even |
| 1869 | +Examples: |
| 1870 | +.RS |
| 1871 | +.IP \(bu 3 |
| 1872 | +IA-64 filter has 16-byte alignment so |
1872 | 1873 | .B pb=4,lp=4,lc=0
|
| 1874 | +is good |
1873 | 1875 | with LZMA2 (2^4=16).
|
1874 |
| -The x86 filter is an exception; |
1875 |
| -it's usually good to stick to LZMA2's default |
1876 |
| -four-byte alignment when compressing x86 executables. |
| 1876 | +.IP \(bu 3 |
| 1877 | +RISC-V code has 2-byte or 4-byte alignment |
| 1878 | +depending on whether the file contains |
| 1879 | +16-bit compressed instructions (the C extension). |
| 1880 | +When 16-bit instructions are used, |
| 1881 | +.B pb=2,lp=1,lc=3 |
| 1882 | +or |
| 1883 | +.B pb=1,lp=1,lc=3 |
| 1884 | +is good. |
| 1885 | +When 16-bit instructions aren't present, |
| 1886 | +.B pb=2,lp=2,lc=2 |
| 1887 | +is the best. |
| 1888 | +.B readelf \-h |
| 1889 | +can be used to check if "RVC" |
| 1890 | +appears on the "Flags" line. |
| 1891 | +.IP \(bu 3 |
| 1892 | +ARM64 is always 4-byte aligned so |
| 1893 | +.B pb=2,lp=2,lc=2 |
| 1894 | +is the best. |
| 1895 | +.IP \(bu 3 |
| 1896 | +The x86 filter is an exception. |
| 1897 | +It's usually good to stick to LZMA2's defaults |
| 1898 | +.RB ( pb=2,lp=0,lc=3 ) |
| 1899 | +when compressing x86 executables. |
| 1900 | +.RE |
1877 | 1901 | .IP ""
|
1878 | 1902 | All BCJ filters support the same
|
1879 | 1903 | .IR options :
|
|
0 commit comments