Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update miniz to the latest version, 2.1.0. This is the stock, amalgated miniz, with a few modifications, forward-ported from the existing diff against 1.5: * Configuration options (the definitions at the top of miniz.h) * Disabling assert(), i.e. defining MZ_ASSERT to nothing * Defining TDEFL_LESS_MEMORY to 1 * Setting TDEFL_LZ_DICT_SIZE = 8*1024 and TDEFL_LZ_CODE_BUF_SIZE = 8 * 1024 An additional complication is that the new miniz performs a long long to integer division, which requires code from libgcc (__ashldi3), which we didn't link to by default (due to -nostdlib). Add -lgcc to LDLIBS. Even with the additional libgcc dependency, it seems like this is a .text reduction: from 7990 to 7947 (both compiled with gcc 9.2.1 and picolibc 1.3). Tested on real hardware (D1 Mini Pro). See #499 for some additional context.
- Loading branch information