[Mono-dev] compile mono on windows

Quandary quandary82 at hailmail.net
Sun Apr 17 03:11:52 EDT 2011


Hi,

>From my experience, MinGW is usually faster.
But it probably depends on the version of gcc they both use.

However, speed is not the main issue.
The main difference is, MinGW links against the native Windows libc
runtime (crtdll.dll),
while Cygwin links against the Cygwin libc (cygwin1.dll).

  /* hello.c -- hello world example. */
  #include <stdio.h>
  int main () 
  {
      printf ("Hello world!\n");
      return 0;
  }

Cygwin:

  $ objdump -p hello.exe | grep "DLL Name"
        DLL Name: cygwin1.dll
        DLL Name: kernel32.dll


MinGW:

  $ objdump -p hello.exe | grep "DLL Name"

        DLL Name: crtdll.dll
        DLL Name: kernel32.dll



Which means whenever you deploy a Cygwin-compiled executable to another
windows system where Cygwin isn't installed, it will say: dll
cygwin1.dll not found, while the MinGW compiled exe will run fine.

Also, the Windows libc is probably more optimized - faster at runtime,
so to say.
I tend to prefer MinGW, simply because you don't depend on Cygwin that
way, and because the MinGW compiled executables tend to be faster.


The compilation process is a one-time expenditure, so it isn't that
important.




On 04/16/2011 03:49 PM, Robert Jordan wrote:
> Hi,
>
> On 15.04.2011 22:51, Frank Fuchs wrote:
>> After some more successful tests I can confirm that I build a more or
>> less functional version of a 64 bit native Windows mono runtime using
>> Mingw-w64 and MSys (without cygwin).
> How does the Mingw build time compare to cygwin's?
>
> Robert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110417/16029e58/attachment.html 


More information about the Mono-devel-list mailing list