How to reduce simple cpp application size? (compiled with RAD Studio 2010 cpp builder)
Posted
by peterg
on Stack Overflow
See other posts from Stack Overflow
or by peterg
Published on 2010-05-16T03:13:10Z
Indexed on
2010/05/16
3:20 UTC
Read the original article
Hit count: 391
I am using rad studio 2010 cpp builder. I've created a new SDI application, added a TCppWebBrowser control and a simple button that onclick trigger the .navigate for the TCppWebBrowser, I compiled it and I got a 1.20mb file, I was expecting less than 700kb at least.
How can I reduce the size of the compiled exe?
I don't want to use "build with runtime packages", I know that will make it very small but I want to get all the necessary packages and dependencies inside the exe but maybe I am getting more than I use, I tried unchecking/removing a lot of design packages (in project/options/packages) I don't use but the file size didn't decreased.
Also I was thinking maybe the TForm component that comes with RAD Studio is giving me more stuff than I need and that could make the file bigger, I mean I only need to drop a webbrowser control and a few buttons in the form, maybe there's a minimal form component I could use to replace TForm.
Any suggestions will be appreciated.
© Stack Overflow or respective owner