Hi, is there any methods to reduce compiled output size? I used -Os parameter and #pragma once every header.
I want to know there is more method to reduce more size
I want to know there is more method to reduce more size
|
C
G++ reduce output file size |
|
May 8, 2020 11:31 PM
(This post was last modified: May 9, 2020 06:25 AM by saltycracker.)
(May 8, 2020 07:22 AM)SIM-3149568 Wrote: Hi, is there any methods to reduce compiled output size? I used -Os parameter and #pragma once every header. This really depends on what you are trying to create. (May 8, 2020 09:22 AM)Tafelpoot Wrote: WIN32_LEAN_AND_MEAN and only include headers that are absolutely necessary. You can include every header file known to man but it won't compile it into the exe unless you use that functionality.
May you be given directions by software engineer document writers.
May 9, 2020 09:20 AM
(This post was last modified: May 9, 2020 09:22 AM by 0xDEAD10CC.)
You can merge sections among a few other things.. All techniques you can find online.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer] |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [Source] by HackersNov 19, 2024 01:51 PM | 15 | 673 |
Nov 19, 2024 01:51 PM Last Post: Hackers |
| [C#] by altanaMar 3, 2022 04:54 AM | 28 | 1,101 |
Mar 3, 2022 04:54 AM Last Post: goodrabbit |
| [C] by sonnyJul 2, 2021 02:17 PM | 0 | 221 |
Jul 2, 2021 02:17 PM Last Post: sonny |