home
blogs
tags
#c
Building a Lossless File Compressor from Scratch in C: My Journey with Shannon-Fano, Bitstreams, and Low-Level Performance
06-09-2026
·
9 min read
A deep dive into building kmprs, a lossless file compressor written from scratch in C using Shannon-Fano entropy coding, custom bit-level I/O, and low-level performance optimizations.