<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I'll have to look into it. It is possible I dropped support for "NT386" in favor of "I386_NT".<BR>
I've definitely used the Python a fair amount on Windows, but less lately.<BR>
You can probably force it by first setting the environment variable CM3_TARGET to NT386 or I386_NT.<BR>
Or by giving either of those parameters on the command line.<BR>
But you shouldn't have to.<BR>
 <BR>
 - Jay<BR> <BR>

<HR id=stopSpelling>
From: rcolebur@SCIRES.COM<BR>To: jay.krell@cornell.edu; m3devel@elegosoft.com<BR>Date: Mon, 14 Feb 2011 18:54:50 -0500<BR>Subject: Re: [M3devel] threading on Windows?<BR><BR>
<META name=Generator content="Microsoft SafeHTML">
<STYLE>
.ExternalClass .ecxshape
{;}
</STYLE>

<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle20
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle201
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxapple-style-span
{;}
.ExternalClass span.ecxecxapple-converted-space
{;}
.ExternalClass span.ecxEmailStyle30
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</STYLE>

<DIV class=ecxWordSection1>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Jay:</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Up to now, I’ve been using my Windows CMD scripts to “upgrade”, namely:  scripts\dev\windows\</SPAN> <SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">RCC_upgradeCM3.CMD</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">But, based on your message, I am trying to do as you suggest, i.e., use your “upgrade.py”.</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I am running Windows 7.  I have just installed Python 2.7.1 via <A href="http://www.python.org/ftp/python/2.7.1/python-2.7.1.msi" target=_blank>http://www.python.org/ftp/python/2.7.1/python-2.7.1.msi</A> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Here is error message I get:</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">C:\cm3\Sandbox\scripts\python>upgrade.py</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Traceback (most recent call last):</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">  File "C:\cm3\Sandbox\scripts\python\upgrade.py", line 4, in <module></SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">    import pylib</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">  File "C:\cm3\Sandbox\scripts\python\pylib.py", line 612, in <module></SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">    if Target.startswith("NT386"):</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">AttributeError: 'NoneType' object has no attribute 'startswith'</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Please advise.</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Randy Coleburn</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN></P>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> jayk123@hotmail.com [mailto:jayk123@hotmail.com] <B>On Behalf Of </B>Jay K<BR><B>Sent:</B> Saturday, February 12, 2011 5:39 AM<BR><B>To:</B> Coleburn, Randy; m3devel<BR><B>Subject:</B> RE: [M3devel] threading on Windows?</SPAN></P></DIV></DIV>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal> </P>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">TextUtils.mo : error LNK2001: unresolved external symbol __alloca<BR>TextUtils.mo : error LNK2001: unresolved external symbol _Csetjmp__Jumpbuf_size<BR>sysutils.dll : fatal error LNK1120: 2 unresolved externals<BR><BR>Most likely you didn't build it correctly.<BR>Go back to a working cm3/m3core/libm3 and run upgrade.py.<BR>There should be no longer any references to alloca of Csetjmp__Jumpbuf_size.<BR>Really, Csetjmp__Jumpbuf_size should never have been a problem. That likely also indicates<BR>some sort of incorrect bootstrap.</SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> > Are you saying you do, or do not, want me to work further on the solving the “problem,” regardless of how we describe it ?</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><BR>I still want alloca to work, either via a function call or a specific m3cg method.<BR>(I still don't see that RTHooks.Alloca makes better sense; I still don't see a way<BR>to avoid hacking the compiler, given the custom calling convention.) <BR><BR>It will be difficult to test the fix until/unless m3front is changed back.<BR><BR> - Jay<BR><BR></SPAN></P>
<DIV style="TEXT-ALIGN: center; MARGIN-LEFT: 0.5in" class=ecxMsoNormal align=center><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">
<HR id=ecxstopSpelling align=center SIZE=2 width="100%">
</SPAN></DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From: rcolebur@SCIRES.COM<BR>To: m3devel@elegosoft.com<BR>Date: Fri, 11 Feb 2011 18:17:15 -0500<BR>Subject: Re: [M3devel] threading on Windows?</SPAN></P>
<DIV>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Jay:</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Ok, I don’t mean to start a new issue or upset anyone.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I see you checked in some new changes.  I updated to latest HEAD and tried to build, but again I get unresolved symbols beginning with m3-libs\sysutils  (see attached sysutils.lst)</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">So, not sure what you mean by “it should be ok now”.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Are you saying you do, or do not, want me to work further on the solving the “problem,” regardless of how we describe it ?</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Randy</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<P style="MARGIN-LEFT: 0.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> jayk123@hotmail.com [mailto:jayk123@hotmail.com] <B>On Behalf Of </B>Jay K<BR><B>Sent:</B> Friday, February 11, 2011 4:52 PM<BR><B>To:</B> Tony; Coleburn, Randy<BR><B>Cc:</B> m3devel<BR><B>Subject:</B> RE: [M3devel] threading on Windows?</SPAN></P></DIV></DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">It isn't heap-based!<BR>  And saying it "leaks" is misleading. It doesn't leak how most people would consider "leak".<BR>  It calls _alloca. If you call _alloca in a loop, you get more and more storage, until you return from the function.<BR>  I understand this. Tony understand it. But calling it "leak" will mislead almost everyone else.<BR>It should be ok now. But still only a temporary solution. We have to either move all the back<BR>to the old way, or make the new way work.<BR><BR><BR>As we have two implementations of many things, it is common for one or the other to break.<BR>The fix is really not difficult. We can't be stuck like this on everything.<BR>But granted, m3front remains confusing to me, so I am stuck for a bit<BR>doing this much better.<BR><BR>Anyway, my time is now significantly reallocated, so it all matters less.<BR><BR> - Jay</SPAN></P>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="TEXT-ALIGN: center; MARGIN-LEFT: 0.5in" class=ecxMsoNormal align=center><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">
<HR align=center SIZE=2 width="100%">
</SPAN></DIV></DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From: hosking@cs.purdue.edu<BR>Date: Fri, 11 Feb 2011 16:29:43 -0500<BR>To: rcolebur@SCIRES.COM<BR>CC: m3devel@elegosoft.com<BR>Subject: Re: [M3devel] threading on Windows?<BR><BR>Randy,</SPAN></P>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">I am in complete agreement with you.</SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<DIV>
<DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: blue; FONT-SIZE: 9pt">Antony Hosking</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt">|</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt">Associate Professor | Computer Science | Purdue University</SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt">305 N. University Street | West Lafayette | IN 47907 | USA</SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: blue; FONT-SIZE: 9pt">Office</SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt"> +1 765 494 6001 |</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: blue; FONT-SIZE: 9pt">Mobile</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt">+1 765 427 5484</SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Helvetica','sans-serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">On Feb 11, 2011, at 4:26 PM, Coleburn, Randy wrote:</SPAN></P></DIV>
<BLOCKQUOTE style="MARGIN-BOTTOM: 5pt">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Tony:</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Thank you very much for this explanation.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">So, it appears that the changes introduced to support the new “heap-based jmpbuf allocation” have introduced at least 2 problems that must be solved if we are to move forward on the Windows platform, namely:</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">1.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: #1f497d; FONT-SIZE: 7pt">      <SPAN class=ecxapple-converted-space> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Space leak problem.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">2.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: #1f497d; FONT-SIZE: 7pt">      <SPAN class=ecxapple-converted-space> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Binding to appropriate “alloca” routine on Windows platform.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Assuming we want to retain this new heap-based jmpbuf allocation capability, someone needs to solve these 2 problems for the Windows platform.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I will begin looking at the code and see if I can make some progress on these 2 problems.  Before I “do” anything, I’ll run my proposed solution thru the m3devel group first.  Any further insights you or Jay can give in helping me work on the solution are welcome and appreciated.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Finally, let me also suggest that we all may need to revisit the conversation we had on this forum many months back about contributors making sure their changes are tested not to cause major breaks before committing them to HEAD branch. </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Seems to me that if the “heap based jumpbuf allocation scheme” was known not to be compatible with Windows, that it should have been checked in on a different experimental branch until all the kinks could be worked out for all platforms.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Otherwise, without some mechanism to warn everyone of known problems on the HEAD branch, folks can easily download stuff that renders their implementation broken.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">If my understanding of HEAD is not the prevailing one, I for one would like clarification as to what is STABLE for checkout and use and what is UNSTABLE.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Randy Coleburn</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Tony Hosking [mailto:hosking@cs.purdue.edu]<SPAN class=ecxapple-converted-space> </SPAN><BR><B>Sent:</B><SPAN class=ecxapple-converted-space> </SPAN>Thursday, February 10, 2011 4:26 PM<BR><B>To:</B><SPAN class=ecxapple-converted-space> </SPAN>Coleburn, Randy<BR><B>Cc:</B><SPAN class=ecxapple-converted-space> </SPAN>m3devel<BR><B>Subject:</B><SPAN class=ecxapple-converted-space> </SPAN>Re: [M3devel] threading on Windows?</SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Hi Randy,</SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">A far as I know, the changes are as follows.</SPAN></P></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">TRY blocks using setjmp/longjmp to implement the exception handling each require statically one instance of a jmpbuf.  Historically, the storage for this was reserved as stack local storage (using CG.Declare_param) of the target-dependent jmpbuf size.  This meant having to declare the jmp_buf accurately for the target.  What Jay did was to replace the stack local with a scalar pointer local variable (also using Declare_param), and to call alloca to obtain a pointer to stack allocated jmpbuf storage.  The idea was to add a level of indirection, and have the size of the jmpbuf obtained from a C variable initialized appropriately,  so that targets need no longer declare their jmpbuf_size.   This was intended to make porting easier.  There are several problems here.  First, the local pointer variable needs to be initialized *once* on entry to the procedure to the value NIL, so that we check for NIL on the first invocation of the TRY and alloca only in that case.  The problem is that currently that initialization is not being performed *once* but instead on each invocation of the TRY so loops with TRY blocks in them currently have a space leak.</SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">The other problem was how to bind to the appropriate alloca routine.  Ideally it should be inlined, and on Windows this is achieved by calling a *different* function, not called alloca.  My suggestion is that making the alloca call a runtime hook will allow targets to easily redirect to the correct function.  On non-Windows targets using the gcc-based backend all works out because alloca is a gcc intrinsic function that gets inlined.</SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">To fix the space leak problem I proposed that Marker in the M3 compiler front end m3front should track, per-procedure, the jmpbuf pointer variables as it parses or checks the program, and have a callback to initialize them at the top of the procedure during code generation.  I don't think this will involve much work, but I don't currently have any spare cycles to spend on it.</SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1.5in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">-- Tony</SPAN></P>
<DIV>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: blue; FONT-SIZE: 9pt">Antony Hosking</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt">|</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: black; FONT-SIZE: 9pt">Associate Professor | Computer Science | Purdue University</SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt">305 N. University Street | West Lafayette | IN 47907 | USA</SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: blue; FONT-SIZE: 9pt">Office</SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt"> +1 765 494 6001 |</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'Gill Sans','serif'; COLOR: blue; FONT-SIZE: 9pt">Mobile</SPAN></SPAN><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN></SPAN><SPAN class=ecxapple-style-span><SPAN style="FONT-FAMILY: 'GillSans-Light','serif'; COLOR: black; FONT-SIZE: 9pt">+1 765 427 5484</SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Helvetica','sans-serif'; COLOR: black; FONT-SIZE: 9pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">On Feb 10, 2011, at 3:59 PM, Coleburn, Randy wrote:</SPAN></P></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Jay / Tony:</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I am seeing in this thread that the approach to fixing the problem is not yet agreed upon.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I will be glad to help in any way I can, but right now, I am “in the dark”, both as to what change was introduced that caused the problem, and the various potential solution paths.  All I know is that it has been broken for a number of weeks now.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I know Jay has asked for help, and I am willing to help, but it may cost him or you some time/effort in getting me up to speed on what went wrong and the pros/cons of potential solutions.  If you choose to help enlighten me, I pledge to try and put that knowledge to good use both now and in the future.  Otherwise, I will have to wait for one of you to solve the problem.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">BTW, when I look at the linker error reports for the various packages, I’m seeing several different symbols that don’t resolve, not just the one dealing with memory allocation.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Randy</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 3pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Tony Hosking [mailto:hosking@cs.purdue.edu]<SPAN class=ecxapple-converted-space> </SPAN><BR><B>Sent:</B><SPAN class=ecxapple-converted-space> </SPAN>Thursday, February 10, 2011 3:33 PM<BR><B>To:</B><SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</A><BR><B>Cc:</B><SPAN class=ecxapple-converted-space> </SPAN>Coleburn, Randy; m3devel<BR><B>Subject:</B><SPAN class=ecxapple-converted-space> </SPAN>Re: [M3devel] threading on Windows?</SPAN></P></DIV></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 2in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Why is it better?  Because rebinding to a different function is just a matter of changing an INTERFACE in the libraries, rather than hacking the compiler.</SPAN></P>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">On Feb 10, 2011, at 6:01 AM,<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</A><SPAN class=ecxapple-converted-space> </SPAN>wrote:</SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">1. I never understood why this any better.<BR>2. It how things are currently.</SPAN></P></DIV></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">3. Why not m3cg.alloca? (but see #2)</SPAN></P></DIV></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><BR> - Jay/iPad</SPAN></P></DIV></DIV></DIV>
<DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 2in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><BR>On Feb 9, 2011, at 9:48 PM, Tony Hosking <<A href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</A>> wrote:</SPAN></P></DIV>
<BLOCKQUOTE style="MARGIN-BOTTOM: 5pt">
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">What happened to fixing this with runtime hooks?</SPAN></P></DIV></DIV>
<DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 2in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">On Feb 9, 2011, at 11:40 PM, Jay K wrote:</SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Of course not.<BR>It is a made-up function that the frontend generates a call to.<BR>That it never previously did.<BR>Using the general function call interface.<BR>You need to add a special case, in the general function call code, to do something different and specific<BR>for this specific function.<BR> <BR> <BR> - Jay <BR> </SPAN></P></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="TEXT-ALIGN: center; MARGIN-LEFT: 0.5in" class=ecxMsoNormal align=center><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">
<HR align=center SIZE=2 width="100%">
</SPAN></DIV></DIV></DIV></DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 2in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:rcolebur@SCIRES.COM">rcolebur@SCIRES.COM</A><BR>To:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</A>;<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</A><BR>Date: Wed, 9 Feb 2011 22:28:45 -050<BR>Subject: Re: [M3devel] threading on Windows?</SPAN></P>
<DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Jay:</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<P style="MARGIN-LEFT: 2in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I looked thru the 4,618 lines of M3x86.m3, but I don’t see any reference to “m3_alloca” or even “alloc” in this file.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<P style="MARGIN-LEFT: 2in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Randy</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<P style="MARGIN-LEFT: 2in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 3pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><A href="mailto:jayk123@hotmail.com">jayk123@hotmail.com</A><SPAN class=ecxapple-converted-space> </SPAN>[mailto:jayk123@hotmail.com]<SPAN class=ecxapple-converted-space> </SPAN><B>On Behalf Of<SPAN class=ecxapple-converted-space> </SPAN></B>Jay K<BR><B>Sent:</B><SPAN class=ecxapple-converted-space> </SPAN>Wednesday, February 09, 2011 9:01 PM<BR><B>To:</B><SPAN class=ecxapple-converted-space> </SPAN>Coleburn, Randy; m3devel<BR><B>Subject:</B><SPAN class=ecxapple-converted-space> </SPAN>RE: [M3devel] threading on Windows?</SPAN></P></DIV></DIV></DIV></DIV></DIV>
<P style="MARGIN-LEFT: 2.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">In m3back/src/M3x86.m3.<BR> <BR> - Jay<BR><BR> </SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="TEXT-ALIGN: center; MARGIN-LEFT: 0.5in" class=ecxMsoNormal align=center><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">
<HR align=center SIZE=2 width="100%">
</SPAN></DIV></DIV></DIV></DIV></DIV>
<P style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 2.5in; MARGIN-RIGHT: 0in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:rcolebur@SCIRES.COM">rcolebur@SCIRES.COM</A><BR>To:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</A><BR>Date: Wed, 9 Feb 2011 18:22:56 -0500<BR>Subject: Re: [M3devel] threading on Windows?</SPAN></P>
<DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I am certainly willing to work on the problem, but need more context info about what caused it in order to know how to resolve.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">All I know is that everything was working fine until I checked out the HEAD repository.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">When you say “special case” calls “m3_alloca”, where do I go about finding this “special case”?</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Are we talking Modula-3 code, C code, Assembler, what?  What package/module?</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Regards,</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Randy</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P></DIV></DIV></DIV>
<P style="MARGIN-LEFT: 2.5in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"> </SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"></SPAN></P>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: windowtext 3pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV style="MARGIN-LEFT: 1in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN class=ecxapple-converted-space><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><A href="mailto:jayk123@hotmail.com">jayk123@hotmail.com</A><SPAN class=ecxapple-converted-space> </SPAN>[mailto:jayk123@hotmail.com]<SPAN class=ecxapple-converted-space> </SPAN><B>On Behalf Of<SPAN class=ecxapple-converted-space> </SPAN></B>Jay K<BR><B>Sent:</B><SPAN class=ecxapple-converted-space> </SPAN>Wednesday, February 09, 2011 5:59 PM<BR><B>To:</B><SPAN class=ecxapple-converted-space> </SPAN>Coleburn, Randy; Mika Nystrom; m3devel<BR><B>Subject:</B><SPAN class=ecxapple-converted-space> </SPAN>RE: [M3devel] threading on Windows?</SPAN></P></DIV></DIV></DIV></DIV></DIV>
<P style="MARGIN-LEFT: 3in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<DIV style="MARGIN-LEFT: 1in">
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Maybe someone else can do it?<BR>The fix is: special case calls to the function "m3_alloca".<BR>Change it to call "_chkstk" (or maybe "chkstk", whatever works).<BR>The one parameter is an unsigned 32bit quantity, passed in eax, and the return value is a pointer, returned in esp.<BR>To some extent I drag my feet hoping anyone else might become motivated enough to do it and start learning how.<BR> <BR> - Jay<BR> <BR>> From:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:rcolebur@SCIRES.COM">rcolebur@SCIRES.COM</A><BR>> To:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:mika@async.caltech.edu">mika@async.caltech.edu</A>;<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</A><BR>> Date: Wed, 9 Feb 2011 17:25:20 -0500<BR>> Subject: Re: [M3devel] threading on Windows?<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> Mika:<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> Sorry, but my Windows build is broken. Jay seems to indicate he is working on a "fix" and that this fix is relatively simple, but so far no solution has been checked in.<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> I've been wanting to run your program ever since you first checked it in, but that was about same time the HEAD branch update introduced a build problem. Problem is an unresolved symbol during link.<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> As soon as I can get the build problem resolved, I'll try out your test program.<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> Regards,<BR>> Randy Coleburn<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> -----Original Message-----<BR>> From: Mika Nystrom [mailto:mika@async.caltech.edu]<SPAN class=ecxapple-converted-space> </SPAN><BR>> Sent: Wednesday, February 09, 2011 5:01 PM<BR>> To:<SPAN class=ecxapple-converted-space> </SPAN><A href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</A><BR>> Subject: [M3devel] threading on Windows?<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> Hi m3devel,<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> I'm just curious if anyone out there who's running CM3 on Windows has had<BR>> a chance to try my thread testing program yet. Current status on Unix<BR>> (Linux, FreeBSD) appears to be that there are problems in pthreads (but<BR>> I think only under heavy load) and that user threading works perfectly.<BR>> So I now wonder how things are on the third threading platform (Windows).<BR>> The thread testing program is at m3-libs/m3core/tests/thread .<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> (Note however that there is a memory leak in TRY-EXCEPT in the current<BR>> head so don't try to update everything to the CVS head. The previous<BR>> release should be OK.)<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> Also has anyone else noticed that debugging information has recently<BR>> broken? m3gdb is very unhappy on all platforms for me...<BR>><SPAN class=ecxapple-converted-space> </SPAN><BR>> Mika</SPAN></P></DIV></DIV></DIV></DIV></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV></DIV></DIV>
<DIV style="MARGIN-LEFT: 0.5in">
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<P style="MARGIN-LEFT: 1in" class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P></DIV></DIV></DIV>                                        </body>
</html>