04-20-2024, 07:02 PM
Quote:-Os -s -Wall -static-libgcc -static-libstdc++ -static -fomit-frame-pointer -luser32 -lgdi32 -lshell32@JRace, I looked at the compiler options in your bat file and found them a bit confusing. The description of the individual options for GCC can be found here:
GCC - Compiler Options
Regarding -fomit-frame-pointer: "Omit the frame pointer in functions that do not require one. This eliminates the instructions for saving, setting up, and restoring the frame pointer."
https://gcc.gnu.org/onlinedocs/gcc/Optim...me-pointer
Optimization: "Optimize. Compile optimization requires a little more time and a lot more memory for a large function.
With -O, the compiler tries to reduce code size and execution time without performing optimizations that take a lot of compile time."
-Wall makes sense because the option displays warnings if the source code was compiled but contains imperfections.
In my opinion, something is wrong there. It seems to me that some options interfere with each other, and I can't find this one in the description: -luser32 -lgdi32 -lshell32.
I doubt that it makes sense to compile every file with all the specified compiler options.