Home » Developing U++ » Documentation » achieve low file size of compiled executable how ?
achieve low file size of compiled executable how ? [message #55913] |
Fri, 01 January 2021 18:20  |
khan999
Messages: 5 Registered: December 2020
|
Promising Member |
|
|
Respected developers,
I have been using mfc visual studio.
Whenever I need low file size I simply use "Use MFC in a Shared DLL".
It becomes 9mb's to 100kb's executable.
And I am new to U++.
But here when I check shared libs option in U++ it becomes 6mb's to 1mb's only.
Is there any way I could achieve low file size as much as possible ? Or this is final expected size ?
I have hope because its uses MS VC++ and mfc also uses that same compiler.
Regards.
[Updated on: Fri, 01 January 2021 18:22] Report message to a moderator
|
|
|
Re: achieve low file size of compiled executable how ? [message #55914 is a reply to message #55913] |
Sat, 02 January 2021 00:37   |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
The U++ framework is quite independent from platform specific libraries (DLL files in windows, system libsomething.so in linux, ...), and even reimplementing some parts of standard C++ library.
So it's actually quite a big chunk of machine code, think more like kf5libs in KDE projects and similar (but KDE/Qt is even much much larger).
So 1-3MB is what is to be expected, it's not strong side of U++ to produce 64kiB intros, for that you need other tools (usually everything custom and not using any framework at all ).
You could probably squash the executable further by using exe-packer like UPX, but then it will be more likely marked by modern antivirus heuristic as some generic threat or at least suspicious file.
Actually for large GUI apps, the final U++ executable is usually quite small (like under 10MB) compared to similar apps created in other toolkits, but for tiny apps like "hello world" there's extra price for the cross-platform nature of U++.
[Updated on: Sat, 02 January 2021 00:37] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri May 09 19:59:29 CEST 2025
Total time taken to generate the page: 0.00752 seconds
|