Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Download the executable weight
Alpha:
--- Quote from: mamama on October 17, 2011, 03:53:08 pm ---Strip all symbols from binary?
--- End quote ---
Yes.
I assume you are using MinGW; see large executables.
The MinGW flags I have found to produce the smallest binary are "Strip all symbols from binary" and "Optimize generated code for size" under compiler flags,
--- Code: ----fno-rtti
-fno-exceptions
-ffunction-sections
-fdata-sections
-flto
--- End code ---
for other compiler options, and
--- Code: ----flto
-Os
-Wl,--gc-sections
-shared-libgcc
-shared-libstdc++
--- End code ---
for linker options. (Note that this will cause the executable to dynamically link to the MinGW run-time libraries.)
Jenna:
You can pack the executable with something like upx in the postbuild steps.
In the targets post-build step you can put:
--- Code: ---upx --best $TARGET_OUTPUT_FILE
--- End code ---
Nite: upx has to be in your search-path, otherwise you have to use the full path for it.
Navigation
[0] Message Index
[*] Previous page
Go to full version