<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>ps -- look at m3-sys/cminstall/src/config/NT386GNU.<BR>
While it is very very similar to NT386, and even outputs foo.lib and foo.lib.sa like NT386, it uses gcc for C compilation, linking, and m3cg for the backend.<BR>
It is very "GNU" in tools, but not runtime.<BR>
<BR>
- Jay<BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: jayk123@hotmail.com<BR>To: hosking@cs.purdue.edu; jkrell@elego.de<BR>CC: m3devel@elegosoft.com<BR>Subject: RE: [M3devel] [M3commit] CVS Update: cm3<BR>Date: Sat, 19 Jan 2008 18:32:35 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
It DOES use m3cc/ld/as, and mklib for building static .libs, though that could probably be gcc/ar/dlltools if I figured it out.<BR>"Everything" except m3cc/m3gdb can be built with just MinGWin.<BR>Building m3cc requires MSys as well.<BR>Building m3gdb requires Cygwin.<BR>m3cg is not dependent on cygwin1.dll, nor are any other Modula-3 outputs. m3gdb is dependent on cygwin1.dll.<BR> <BR>Using Cygwin probably would work..and I could try it to see if it resolves the RTLinker problem.<BR> <BR>As well, we could have something like, in cm3.cfg you could set MINGWIN_ROOT, MSYS_ROOT, and/or CYGWIN_ROOT, to guide what tools are used, OR we can have some variable:<BR> <BR>GNU_MODE = 0 % Do not use GNU tools at all -- today's NT386<BR>GNU_MODE = 1 % Use GNU tools minimally -- today's NT386GNU<BR>GNU_MODE = 2 % Use GNU tools maximally -- not existant but probably easy<BR> <BR>Eh..I know, not great.. what do "minimally" and "maximally" mean.<BR> <BR>I think we have the problem of a) many viable choices b) want to make several of them available c) just don't know what to call things and what the interface should be. As well as an interop question, since jmpbuf does vary in size between cygwin1.dl and everything else.<BR> <BR>Further down the line, there are other linkers, other compilers, other runtimes. The design here and now might take them into consideration.<BR>Gasp..I just realized, there is also another good backend option. parse.c's approach could probably be adapted to Open Watcom AND they might even take the changes (not that I have asked, I just thought of this). And that would net you progress toward a) 32 bit MS-DOS target b) OS/2 target, c) Netware target d) gcc-free Linux target, since the support all of them.<BR>Other target possibilities include Digital Mars compiler/linker, CodeWarrior (I know, dead and all), etc. Open Watcom is probably the most interesting since it is open source...<BR> <BR> - Jay<BR><BR><BR>
<HR id=EC_stopSpelling>
<BR>> From: hosking@cs.purdue.edu<BR>> Date: Sat, 19 Jan 2008 12:48:06 -0500<BR>> To: jkrell@elego.de<BR>> CC: m3devel@elegosoft.com<BR>> Subject: Re: [M3devel] [M3commit] CVS Update: cm3<BR>> <BR>> So, I am very confused now. Does NT386GNU no longer mean use of the <BR>> full set of GNU tools m3cc/ld/as, as would be available under <BR>> Cygwin? I thought the point of this was to be able to run in as much <BR>> of a GNU environment as possible. GNU to me means the whole <BR>> toolsuite not just m3cc. To me, a GNU-based environment on Windows <BR>> holds great attraction, since it consists of tools that I generally <BR>> always install on Windows, that I know, and are similar to the other <BR>> platforms I use.<BR>> <BR>> On Jan 19, 2008, at 4:11 AM, Jay Krell wrote:<BR>> <BR>> > CVSROOT: /usr/cvs<BR>> > Changes by: jkrell@birch. 08/01/19 04:11:34<BR>> ><BR>> > Modified files:<BR>> > cm3/m3-libs/m3core/src/runtime/: m3makefile<BR>> > cm3/m3-sys/cminstall/src/config/: NT386GNU<BR>> > cm3/m3-sys/m3front/src/builtinInfo/: InfoModule.m3<BR>> > cm3/m3-sys/m3middle/src/: Target.m3<BR>> ><BR>> > Log message:<BR>> > m3-sys/m3middle/src/Target.m3<BR>> > m3-libs/m3core/src/runtime/m3makefile<BR>> > m3-sys\m3front\src\builtinInfo\InfoModule.m3<BR>> > <BR>> > switch NT386GNU to be Win32 instead of POSIX<BR>> > switch NT386GNU to _setjmp instead of setjmp<BR>> > jmp_buf size still big like Cygwin<BR>> > rewrite NT386GNU config file -- almost identical to NT386<BR>> > mingwin required for building Modula-3 programs<BR>> > mingwin AND msys required for building m3cc<BR>> > <BR>> > To boot:<BR>> > <BR>> > install Python (www.activestate.com)<BR>> > <BR>> > have a working NT386 system<BR>> > get current source<BR>> > Mine is at c:\dev2\cm3.2 (cm3 is has other paused work, dev was <BR>> > taken by Unix)<BR>> > <BR>> > get and install binary distribution (5.1.3 works, anything newer <BR>> > should work)<BR>> > I install to c:\cm3<BR>> > copy %CVSROOT%\m3-sys\cminstall\src\config\cm3.cfg to \cm3\bin <BR>> > \cm3.cfg<BR>> > <BR>> > Have a Visual C++ toolset (cl and link)<BR>> > and run the vcvars link on the start menu (this can/will be made <BR>> > easier)<BR>> > Almost any version should work.<BR>> > if you are using Visual C++ 8.0 (RTM?), rename away its mt.exe<BR>> > and get a newer from such as from the Platform SDK. Otherwise it <BR>> > crashes.<BR>> > This is not specific to NT386GNU, just that I recently removed the <BR>> > Platform SDK<BR>> > from my %PATH%.<BR>> > <BR>> > cd %CVSROOT%\scripts\python<BR>> > .\upgrade<BR>> > <BR>> > install msys and mingwin from http://www.mingw.org (links to <BR>> > SourceForge)<BR>> > for mingwin, you only need the "base"<BR>> > msys tells you to avoid mingwin make, in favor of msys make, and I <BR>> > did that<BR>> > <BR>> > I install to the defaults<BR>> > c:\msys\1.0<BR>> > c:\mingw<BR>> > <BR>> > if you don't install to the defaults, add<BR>> > <msys>\bin and <mingwin\bin to $PATH (in which order? I add<BR>> > to the start, but which order between the two?)<BR>> > <BR>> > if you do install to the defaults, scripts\python will fix path <BR>> > for you,<BR>> > if there is no gcc/as/sh on our $PATH<BR>> > <BR>> > cd %CVSROOT%\scripts\python<BR>> > upgrade && bootntgnu<BR>> > <BR>> > NOTE THE RESULTING BINARIES DO NOT YET WORK, but this is still <BR>> > progress.<BR>> > <BR>> > These instructions inevitably to be further tested and refined and <BR>> > placed elsewhere!<BR>> <BR><BR><BR>
<HR>
Need to know the score, the latest news, or you need your HotmailŪ-get your "fix". <A href="http://www.msnmobilefix.com/Default.aspx" target=_blank>Check it out.</A> </BLOCKQUOTE><br /><hr />Connect and share in new ways with Windows Live. <a href='http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008' target='_new'>Get it now!</a></body>
</html>