Skip to main content
16 events
when toggle format what by license comment
May 15, 2015 at 1:49 comment added FilBot3 This answer made more sense to me. I used Code::Blocks to get the end result. not what I wanted to do, but it worked. If I had a standalone MinGW install, it would work.
May 31, 2013 at 16:59 comment added maxpolk Sample static compile of GUI windows app: i686-pc-mingw32-g++ -static -mwindows -o A.exe A.cc
Nov 10, 2010 at 21:05 comment added ak2 @leppie 9 vs 24 on a Win7x64 system here. Not good at all, but still some way from 10x, which of course can't be said vis-a-vis Linux. The basic problem here is that Windows processes simply weren't designed for forking, so for example the copy-on-write approach can't be used with them.
Nov 10, 2010 at 15:41 comment added leppie @ak2: In a Linux VM I get ~725 :|
Nov 10, 2010 at 15:39 comment added leppie @ak2: I get 13 vs 50. Stock i7 860. Win 7 32bit.
Nov 10, 2010 at 15:34 comment added leppie @ak2: It was more of thumbsucked number, based on how long ./configure normally takes.
Nov 10, 2010 at 13:17 comment added ak2 @leppie: Well, using ye olde while true; do date; done | uniq -c on my XP system, I get about 45 forks per second for Cygwin, and 70 for MSYS. Of course latest Cygwin does a lot more with regards to POSIX/Linux compatibility than MSYS, so it's got an excuse. Where did you see the 10x difference?
Nov 10, 2010 at 12:38 comment added leppie @ak2: Process forking is about 10 times faster in MSYS. In Cygwin, it is unbearably slow.
Nov 10, 2010 at 12:31 comment added ak2 @goldenmain: I very much doubt that the MinGW compilers are any faster than the Cygwin ones, since essentially it's the same compiler. Where Cygwin is slow is when forking processes, which is particularly noticeable in configure scripts. But that's much the same with MinGW's MSYS, which is based on an old Cygwin version.
Nov 10, 2010 at 12:28 comment added ak2 Cygwin itself also comes with cross compilers by the MinGW-w64 project, both for generating 32-bit and 64-bit executables. Just look for mingw64 in Cygwin setup.exe.
Nov 10, 2010 at 11:38 comment added leppie @goldenmean: You would need cross-compilers for that. Either way, you would still have a separate executable per platform. It's not .NET or Java :)
Nov 10, 2010 at 11:08 comment added leppie @goldenmean: I would say yes, and it is A LOT faster than cygwin (compiling, not the output). There is also an easy to install version lately. Look for mingw-get on the downloads page. Edit: No you dont need Cygwin, MinGW has it's own shell, or you can just setup your PATH's and use it from the Windows command prompt if you do not need shell functionality.
Nov 10, 2010 at 11:07 comment added goldenmean @Leppie: Yes that gcc option seems to have gone When i tried to use it gave "gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler". Thanks. So now i need to use MingW compiler under cygwin instead of gcc, is it?
Nov 10, 2010 at 11:05 comment added leppie @goldenmean: You can try the -mno-cygwin compiler option, but I read somewhere that it was removed from the newer versions of Cygwin.
Nov 10, 2010 at 11:01 comment added goldenmean @leppie: Got that, thanks. So for the exe to be made independent of cygwin & To be run on some other windows system which does not have cygwin installed, i need to use MingW. Is MingW a compiler or some kind of library that my code should link in?
Nov 10, 2010 at 10:52 history answered leppie CC BY-SA 2.5