[MLton-user] native gcc and i386-pc-* vs. i386-*?

Sam Rushing sam-mlton-user@rushing.nightmare.com
Fri, 07 Nov 2003 13:01:14 -0800


On Fri, 2003-11-07 at 11:42, Anoq of the Sun wrote:
> In the build-files I found at www.libsdl.org they use
> the target i386-mingw32msvc (which I also use in the
> script I sent earlier) and the files I found at
> www.mingw.org just uses mingw32. Pete's suggestion
> from earlier uses yet another flavour: i386-pc-mingw32msvc.
> 
> I don't know if there is any difference in these
> target names and whether or not there is a recommended
> target name. Does anyone know?

There are two choices for 'libc' in the win32 world, 'crtdll.dll', or
'msvcrtXXX.dll'.  The former is shipped on all 32-bit windows OS since
win95, the latter comes in several versions, and could be considered
part of the MSVC distribution rather than the OS.

The drawback to using the msvcrt version is that you technically might
need to ship a copy with your application.  With crtdll you can ship a
tiny .exe file and know that it will run everywhere.  Modern windows
systems probably have about 1200 copies of msvcrtxxx.dll installed, in
addition to the one in the system32 directory, so it's not a real issue.

BTW, thanks for doing this!  I've been meaning to get around to trying a
mingw build for a while, never had the time...

-Sam