Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

G++ reduce output file size

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
WIN32_LEAN_AND_MEAN and only include headers that are absolutely necessary.
(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.
I want to know there is more method to reduce more size

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.
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