GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.48k stars 282 forks source link

Optimizing the output file #349

Open AlexanderZhirov opened 2 years ago

AlexanderZhirov commented 2 years ago

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

dtschump commented 2 years ago

Have you tried with -Os and -flto ?