<s>
Mingw-w64	B-Application
is	O
a	O
free	B-License
and	I-License
open	I-License
source	I-License
software	I-License
development	O
environment	O
to	O
create	O
(	O
cross-compile	B-Application
)	O
Microsoft	B-Application
Windows	I-Application
PE	O
applications	O
.	O
</s>
<s>
It	O
was	O
forked	B-Application
in	O
2005	O
–	O
2010	O
from	O
MinGW	B-Application
(	O
Minimalist	B-Application
GNU	I-Application
for	I-Application
Windows	I-Application
)	O
.	O
</s>
<s>
Mingw-w64	B-Application
includes	O
a	O
port	O
of	O
the	O
GNU	B-Application
Compiler	I-Application
Collection	I-Application
(	O
GCC	B-Application
)	O
,	O
GNU	B-Application
Binutils	I-Application
for	O
Windows	O
(	O
assembler	B-Application
,	O
linker	B-Application
,	O
archive	B-Application
manager	I-Application
)	O
,	O
a	O
set	O
of	O
freely	O
distributable	O
Windows	O
specific	O
header	B-Language
files	I-Language
and	O
static	B-Library
import	I-Library
libraries	I-Library
which	O
enable	O
the	O
use	O
of	O
the	O
Windows	B-Library
API	I-Library
,	O
a	O
Windows	O
native	O
build	O
of	O
the	B-Application
GNU	I-Application
Project	I-Application
's	O
GNU	B-Language
Debugger	I-Language
,	O
and	O
miscellaneous	O
utilities	O
.	O
</s>
<s>
Mingw-w64	B-Application
can	O
be	O
run	O
either	O
on	O
the	O
native	O
Microsoft	B-Application
Windows	I-Application
platform	O
,	O
cross-hosted	O
on	O
Linux	B-Application
(	O
or	O
other	O
Unix	B-Application
)	O
,	O
or	O
"	O
cross-native	O
"	O
on	O
MSYS2	O
or	O
Cygwin	B-Language
.	O
</s>
<s>
Mingw-w64	B-Application
can	O
generate	O
32	O
bit	O
and	O
64-bit	O
executables	O
for	O
x86	O
under	O
the	O
target	O
names	O
and	O
.	O
</s>
<s>
In	O
2005	O
,	O
Mingw-w64	B-Application
was	O
created	O
by	O
OneVision	O
Software	O
under	O
cleanroom	B-Application
software	I-Application
engineering	I-Application
principles	O
,	O
since	O
the	O
original	O
MinGW	B-Application
project	O
was	O
not	O
prompt	O
on	O
updating	O
its	O
code	O
base	O
,	O
including	O
the	O
inclusion	O
of	O
several	O
key	O
new	O
APIs	O
and	O
also	O
much	O
needed	O
64-bit	O
support	O
.	O
</s>
<s>
It	O
was	O
first	O
submitted	O
to	O
the	O
original	O
MinGW	B-Application
project	O
,	O
but	O
refused	O
under	O
suspicion	O
of	O
using	O
non-public	O
or	O
proprietary	O
information	O
.	O
</s>
<s>
For	O
many	O
reasons	O
,	O
the	O
lead	O
developer	O
and	O
co-founder	O
of	O
the	O
MinGW-w64	B-Application
project	O
,	O
Kai	O
Tietz	O
,	O
decided	O
not	O
to	O
attempt	O
further	O
cooperation	O
with	O
MinGW	B-Application
.	O
</s>
<s>
MinGW-w64	B-Application
provides	O
a	O
more	O
complete	O
Win32	B-Library
API	I-Library
implementation	O
,	O
including	O
:	O
</s>
<s>
Some	O
useful	O
tools	O
such	O
as	O
gendef	O
(	O
an	O
improved	O
version	O
of	O
MinGW	B-Application
's	O
pexports	O
utility	O
)	O
,	O
and	O
widl	O
(	O
an	O
MIDL	B-Application
compiler	B-Language
from	O
Wine	B-Application
)	O
.	O
</s>
<s>
Additionally	O
,	O
the	O
Mingw-w64	B-Application
project	O
maintains	O
winpthreads	O
,	O
a	O
wrapper	B-Library
library	I-Library
similar	O
to	O
pthreads-win32	O
,	O
with	O
the	O
main	O
difference	O
that	O
it	O
allows	O
GCC	B-Application
to	O
use	O
it	O
as	O
a	O
threads	O
library	O
resulting	O
in	O
functional	O
C++11	B-Language
thread	O
libraries	O
<thread>, <future>, and <mutex>	O
.	O
</s>
<s>
MSYS2	O
(	O
"	O
minimal	O
system	O
2	O
"	O
)	O
is	O
a	O
software	O
distribution	O
and	O
a	O
development	O
platform	O
for	O
Microsoft	B-Application
Windows	I-Application
,	O
based	O
on	O
Mingw-w64	B-Application
and	O
Cygwin	B-Language
,	O
that	O
helps	O
to	O
deploy	O
code	O
from	O
the	O
Unix	B-Application
world	O
on	O
Windows	O
.	O
</s>
<s>
It	O
plays	O
the	O
same	O
role	O
the	O
old	O
MSYS	B-Application
did	O
in	O
MinGW	B-Application
.	O
</s>
<s>
MSYS2	O
shares	O
this	O
goal	O
of	O
bringing	O
Unix	B-Application
code	O
to	O
Windows	O
machines	O
with	O
several	O
other	O
projects	O
,	O
most	O
notably	O
Cygwin	B-Language
and	O
Windows	O
Subsystem	O
for	O
Linux	B-Application
(	O
WSL	O
)	O
.	O
</s>
<s>
WSL	O
lets	O
Linux	B-Application
ELF	O
binaries	O
run	O
on	O
Windows	O
through	O
a	O
managed	O
Virtual	B-Architecture
Machine	I-Architecture
.	O
</s>
<s>
Cygwin	B-Language
provides	O
a	O
full	O
POSIX	O
environment	O
(	O
as	O
a	O
windows	O
DLL	O
)	O
in	O
which	O
applications	O
,	O
compiled	B-Language
as	O
Windows	O
EXEs	O
,	O
run	O
as	O
they	O
would	O
under	O
Unix	B-Application
.	O
</s>
<s>
Instead	O
of	O
providing	O
a	O
full	O
environment	O
like	O
Cygwin	B-Language
does	O
,	O
MSYS2	O
tasks	O
itself	O
with	O
being	O
a	O
development	O
and	O
deployment	O
platform	O
.	O
</s>
<s>
There	O
is	O
a	O
main	O
MSYS2	O
environment	O
(	O
similar	O
to	O
,	O
and	O
in	O
fact	O
derived	O
from	O
,	O
Cygwin	B-Language
's	O
emulation	O
code	O
)	O
with	O
package	B-Application
manager	I-Application
and	O
standard	O
Unix	B-Application
system	I-Application
tool	O
.	O
</s>
<s>
This	O
way	O
,	O
when	O
managing	O
MSYS2	O
itself	O
,	O
standard	O
Unix	B-Application
tools	O
can	O
be	O
used	O
unmodified	O
by	O
using	O
the	O
emulated	O
environment	O
.	O
</s>
<s>
In	O
addition	O
,	O
four	O
environments	O
are	O
provided	O
containing	O
native	O
compilers	B-Language
,	O
build	O
tools	O
and	O
libraries	O
that	O
can	O
be	O
directly	O
used	O
to	O
build	O
native	O
Windows	O
32-bit	O
or	O
64-bit	O
programs	O
.	O
</s>
<s>
The	O
environments	O
are	O
MINGW64	O
and	O
MINGW32	B-Application
(	O
the	O
original	O
MinGW-w64	B-Application
environments	O
using	O
gcc	B-Application
,	O
msvcrt	O
,	O
and	O
libstdc++	B-Language
)	O
,	O
UCRT64	O
(	O
adaptation	O
of	O
MINGW64	O
to	O
ucrt	O
)	O
,	O
and	O
CLANG64	O
(	O
adaptation	O
of	O
UCRT64	O
to	O
clang	O
and	O
libc++	O
)	O
.	O
</s>
<s>
While	O
Cygwin	B-Language
also	O
provides	O
MinGW-w64	B-Application
compilers	B-Language
and	O
libraries	O
,	O
the	O
set	O
of	O
available	O
libraries	O
is	O
smaller	O
,	O
and	O
they	O
are	O
not	O
as	O
easily	O
managed	O
due	O
to	O
not	O
being	O
placed	O
in	O
separate	O
prefixes	O
.	O
</s>
<s>
The	O
main	O
MSYS2	O
environment	O
provides	O
a	O
package	B-Application
manager	I-Application
(	O
Pacman	O
from	O
Arch	O
Linux	B-Application
)	O
,	O
a	O
bash	B-Operating_System
shell	I-Operating_System
,	O
and	O
other	O
Unix	B-Application
programs	O
.	O
</s>
<s>
It	O
uses	O
a	O
runtime	O
library	O
msys-2.0.dll	O
(	O
~	O
20MB	O
)	O
that	O
is	O
derived	O
from	O
the	O
Cygwin	B-Language
library	O
cygwin1.dll	O
,	O
and	O
is	O
updated	O
regularly	O
to	O
keep	O
track	O
of	O
the	O
Cygwin	B-Language
development	O
.	O
</s>
<s>
As	O
with	O
Cygwin	B-Language
,	O
MSYS2	O
supports	O
path	O
translation	O
for	O
non-MSYS2	O
software	O
launched	O
from	O
it	O
.	O
</s>
<s>
MSYS2	O
and	O
its	O
bash	B-Operating_System
environment	O
is	O
used	O
by	O
Git	B-Application
and	O
GNU	B-Language
Octave	I-Language
for	O
their	O
official	O
Windows	O
distribution	O
.	O
</s>
<s>
Most	O
languages	O
supported	O
by	O
GCC	B-Application
are	O
supported	O
on	O
the	O
Mingw-w64	B-Application
port	O
as	O
well	O
.	O
</s>
<s>
These	O
include	O
C	B-Language
,	O
C++	B-Language
,	O
Objective-C	B-Language
,	O
Objective-C	B-Language
++	O
,	O
Fortran	B-Application
,	O
and	O
Ada	B-Language
.	O
</s>
<s>
The	O
GCC	B-Application
runtime	O
libraries	O
are	O
used	O
(	O
libstdc++	B-Language
for	O
C++	B-Language
,	O
libgfortran	O
for	O
Fortran	B-Application
,	O
etc	O
.	O
)	O
.	O
</s>
<s>
A	O
packaging	O
of	O
LLVM	B-Application
's	O
clang	O
to	O
mingw-w64	B-Application
is	O
also	O
provided	O
by	O
MSYS2	O
.	O
</s>
<s>
Binaries	O
(	O
executables	O
or	O
DLLs	O
)	O
generated	O
with	O
different	O
C++	B-Language
compilers	B-Language
(	O
like	O
Mingw-w64	B-Application
GCC	B-Application
and	O
Visual	O
Studio	O
)	O
are	O
in	O
general	O
not	O
link	O
compatible	O
due	O
to	O
the	O
use	O
of	O
different	O
ABIs	O
and	O
name	B-Language
mangling	I-Language
schemes	O
caused	O
by	O
the	O
differences	O
in	O
C++	B-Language
runtimes	O
.	O
</s>
<s>
However	O
,	O
compiled	B-Language
C	B-Language
code	O
is	O
link	O
compatible	O
.	O
</s>
<s>
Clang	O
is	O
an	O
exception	O
,	O
as	O
it	O
mostly	O
supports	O
MSVC	O
's	O
C++	B-Language
ABI	B-Operating_System
on	O
Windows	O
.	O
</s>
<s>
The	O
binutils	B-Application
documentation	O
has	O
up-to-date	O
information	O
about	O
its	O
handling	O
of	O
various	O
windows-specific	O
formats	O
and	O
special	O
tools	O
for	O
doing	O
so	O
.	O
</s>
