Afterdawn Posted December 23, 2005 Share Posted December 23, 2005 The title says it all. Link to comment Share on other sites More sharing options...
phkninja Posted December 24, 2005 Share 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 Link to comment Share on other sites More sharing options...
LLXX Posted December 24, 2005 Share 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. Link to comment Share on other sites More sharing options...
Afterdawn Posted December 24, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
LLXX Posted December 26, 2005 Share 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. Link to comment Share on other sites More sharing options...
Afterdawn Posted January 9, 2006 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now