Home » Developing U++ » Documentation » achieve low file size of compiled executable how ?
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: 825 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 Apr 26 10:52:57 CEST 2024
Total time taken to generate the page: 1.05091 seconds
|