December 24, 200520 yr which os. If you want an ide for windows you can tryMinGW Studio - Uses MinGW (a port of GCC to windows).DevC++ - Uses mingw as wellRhino - Can be configured to use any compiler once you know the command line.At the moment if you use any c++ compiler it will give more or less the same results (approx same file sizes etc) with all ompilers producing as small as possible an exe.If you really want to compress your exe use upx with options to strip the icons from the file header.Linux use gcc
December 24, 200520 yr With maximum size optimisations enabled, of course. However, FYI highlevel languages are not usually that well adapted to producing the absolute smallest programs.
December 24, 200520 yr Author Thanks for the replies! Yes I want to develop Windows applications .. and preferably on a Windows platform.An example of how small I mean.. Pyron's has made a few contributions to the unattended forums, he created a little Win app (I guess he used C++) of merely 4KB! I already sent him a PM a week ago but I still don't have a reply. This program of his is called WatchDriverSigningPolicy.exe and it monitors and writes to the registry.It isn't UPX compressed btw.
December 26, 200520 yr Thanks for the replies! Yes I want to develop Windows applications .. and preferably on a Windows platform.An example of how small I mean.. Pyron's has made a few contributions to the unattended forums, he created a little Win app (I guess he used C++) of merely 4KB! I already sent him a PM a week ago but I still don't have a reply. This program of his is called WatchDriverSigningPolicy.exe and it monitors and writes to the registry.It isn't UPX compressed btw.That app does not contain the usual Microsoft copyright string... nor does it contain the standard Runtime Library that is usually present. All it uses are the existing DLLs. However the code is definitely the output of a compiler.
January 9, 200620 yr Author The solution is indeed to exclude the default run-time libraries. Also, use microsoft specific functions, so that they can be linked by means of DLLs.See this link for more information (actually it's for MS Visual Studio but parts are useful for all compilers.)http://www.catch22.net/tuts/minexe.asp
Create an account or sign in to comment