CImg icon indicating copy to clipboard operation
CImg copied to clipboard

Optimizing the output file

Open AlexanderZhirov opened this issue 3 years ago • 1 comments

Is it possible to use any compilation flags to reduce the size of the executable file? I use several functions of this library, but with -O3 the file still weighs about 800 kilobytes. Is it possible to make the size even smaller?

OS: Solus Linux GCC: 11.2.0

AlexanderZhirov avatar Apr 25 '22 21:04 AlexanderZhirov

Have you tried with -Os and -flto ?

dtschump avatar Apr 26 '22 05:04 dtschump