Saturday, September 11, 2021

Smaller Distribution File for the Compiled pbarwin.cpp

Just a quick update.

I've changed the way I built pbarwin.cpp for creation into a usable binary to reduce the number of distributed DLL files to just one cygwin1.dll. This helps with the licensing terms which refer to what can/cannot be distributed.

It also reduces the file size of the ZIP archive that I created, which is a win.

The key idea was to statically link the dependency libraries. Doing that dumbly in g++ though meant an impressively large file [of 11+ MiB for a program of such little functionality], so there was a need to also tell the linker to strip the file down. Doing that led to a more palatable file size of less than 850 kiB.

Surprisingly, run-time doesn't seem to be affected based on my unrigorous testing.

That's all for this quick update. Till the next one.

No comments: