phkninja Posted December 24, 2005 Posted December 24, 2005 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
LLXX Posted December 24, 2005 Posted December 24, 2005 With maximum size optimisations enabled, of course. However, FYI highlevel languages are not usually that well adapted to producing the absolute smallest programs.
Afterdawn Posted December 24, 2005 Author Posted December 24, 2005 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.
LLXX Posted December 26, 2005 Posted December 26, 2005 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.
Afterdawn Posted January 9, 2006 Author Posted January 9, 2006 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now