<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Exact same result with MS link.<BR>
Quite the succesful interop. :)<BR>
I copied in all the relevant *o and *obj files (avoiding mklib/*.lib as a factor) to C:\dev2\cm3.2\m3-sys\cm3\NT386GNU and selectively from \mingw\lib (like just in the end libcgcc.a for arithmetic helpers) and then<BR>
<BR>
link -out:cm3.exe *.io *.mo *.obj comctl32.lib gdi32.lib user32.lib wsock32.lib netapi32.lib libgcc.a kernel32.lib advapi32.lib msvcrt.lib<BR><BR>
prints the same thing, crashes due to the same data.<BR>
<BR>
Which is to say, in the great toolset debate, you can use the gcc back end (and as) for Modula-3, but then either ld or link and probably cl or gcc. :)<BR>
Except..it still doesn't quite work..<BR>
<BR>
I guess "collect2" is a synonym for ld?<BR>
<BR>
- Jay<BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: jayk123@hotmail.com<BR>To: hosking@cs.purdue.edu<BR>CC: m3devel@elegosoft.com<BR>Subject: RE: [M3devel] more assembly symbols please?<BR>Date: Sun, 20 Jan 2008 04:56:00 +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>
<DIV style="TEXT-ALIGN: left">MinGWin (GNU ld)<BR>I might try putting together a totally Cygwin system to see if that works, to try to understand where the problem is.<BR>This really shouldn't be so hard from the information I have though.. :(<BR>Fishing with Cygwin should not be needed..<BR>I can dump the ModuleInfo from C and I can see where the bad one is, I just need to trace through its creation to find where it goes bad...<BR>I assume it is NOT related to the fact that assembly/object file names get truncated to 8 characters, RTHeapInfo.m3 => RTHeapIn.m3 but so far that's all I see to "what is special about RTHeapInfo?".<BR><BR> - Jay<BR></DIV><BR>
<HR id=EC_stopSpelling>
> CC: m3devel@elegosoft.com<BR>> From: hosking@cs.purdue.edu<BR>> Subject: Re: [M3devel] more assembly symbols please?<BR>> Date: Sat, 19 Jan 2008 18:46:59 -0500<BR>> To: jayk123@hotmail.com<BR>> <BR>> Which linker are you using? Could that be a factor?<BR>> <BR>> On Jan 19, 2008, at 1:49 PM, Jay wrote:<BR>> <BR>> > Thanks. m3cg -y for full tracing also dumps relevant stuff at the end.<BR>> > I'll try m3cgcat too. I should just be able to build/run an NT386 <BR>> > version.<BR>> > My C tracing does "prove" the problem is RTHeapInfo, but I still <BR>> > haven't figured out why.<BR>> > I've started skimming the code that builds that data...still a ways <BR>> > off from solving this I think.<BR>> > I have some suspicion the linker is moving things around that were <BR>> > otherwise correct, but I am far from proving that or fixing it.<BR>> > I'd like to first verify that the "m3front" / m3cg output is correct.<BR>> > The lack of labels in the as actually is a counter point to the <BR>> > movement theory, hard for linker to get a handle on anything to <BR>> > move around, it's just one blob.<BR>> ><BR>> > - Jay<BR>> ><BR>> ><BR>> ><BR>> > > CC: m3devel@elegosoft.com<BR>> > > From: hosking@cs.purdue.edu<BR>> > > Subject: Re: [M3devel] more assembly symbols please?<BR>> > > Date: Sat, 19 Jan 2008 12:33:08 -0500<BR>> > > To: jayk123@hotmail.com<BR>> > ><BR>> > > Take a look at the .mc intermediate code output if you want to see<BR>> > > that section of the data. There are at least comments. Use m3cgcat -<BR>> > > binary < x.mc > x.mo to view it (You can run m3cgcat on any other <BR>> > CM3<BR>> > > install).<BR>> > ><BR>> > > On Jan 19, 2008, at 6:02 AM, Jay wrote:<BR>> > ><BR>> > > > Any chance the m3cg output could have, um, some symbols for the<BR>> > > > global data?<BR>> > > > It's kind of a pain to decode..<BR>> > > ><BR>> > > > The module/import info is ok a lot, lots of runtime links ok.<BR>> > > > I think the bad one might be RTHeapInfo but I have to decode the<BR>> > > > very bare of symbols assembly..<BR>> > > > or comments? Like for record fields?<BR>> > > > Still thinking of sticking a call out to C code...Even<BR>> > > > OutputDebugString since RTIO isn't working...<BR>> > > ><BR>> > > > I looked through the m3cg --help, didn't find anything.<BR>> > > ><BR>> > > > Tony?<BR>> > > ><BR>> > > > _MM_RTHeapInfo:<BR>> > > > 0 .long _L_1+224<BR>> > > > 4 .long _MM_RTHeapInfo+52<BR>> > > > 8 .long _MM_RTHeapInfo+308<BR>> > > > 12,16 .space 8<BR>> > > > 20 .long _L_1+152<BR>> > > > 24 .space 4<BR>> > > > 28 .long _L_1+220<BR>> > > > 32 .long _L_1+220<BR>> > > > 36 .long _MM_RTHeapInfo+160<BR>> > > > 40 .space 4<BR>> > > > .long _RTHeapInfo_M3<BR>> > > ><BR>> > > > I get to count out to 160 bytes from here..:<BR>> > > ><BR>> > > > _L_1:<BR>> > > > 0 .byte 48<BR>> > > > 1 .byte 49<BR>> > > > 2 .byte 50<BR>> > > > 3 .byte 51<BR>> > > > 4 .byte 52<BR>> > > > 5 .byte 53<BR>> > > > 6 .byte 54<BR>> > > > 7 .byte 55<BR>> > > > 8 .byte 56<BR>> > > > 9 .byte 57<BR>> > > > a .byte 97<BR>> > > > b .byte 98<BR>> > > > c .byte 99<BR>> > > > d .byte 100<BR>> > > > e .byte 101<BR>> > > > f .byte 102<BR>> > > > 10 .long _RTHooks__TextLitInfo<BR>> > > > 14 .long _RTHooks__TextLitGetChar<BR>> > > > 18 .long _RTHooks__TextLitGetWideChar<BR>> > > > 1c .long _RTHooks__TextLitGetChars<BR>> > > > 20 .long _RTHooks__TextLitGetWideChars<BR>> > > > 24 .long 2<BR>> > > > 28 .long _L_1+16<BR>> > > > 2c .long 7<BR>> > > > 30 .ascii "shownew"<BR>> > > > 37 .space 1<BR>> > > > 38 .long 2<BR>> > > > 3c .long _L_1+16<BR>> > > > 40 .long 6<BR>> > > > 44 .ascii "update"<BR>> > > > 4a .space 2<BR>> > > > 4c .ascii "RTHeapInfo_M3"<BR>> > > > 50 .space 1<BR>> > > > .ascii "Init"<BR>> > > > .space 1<BR>> > > ><BR>> > > > I'll try the C code..<BR>> > > ><BR>> > > > - Jay<BR>> > > ><BR>> > > ><BR>> > > ><BR>> > > ><BR>> > > ><BR>> > > > Connect and share in new ways with Windows Live. Get it now!<BR>> > ><BR>> ><BR>> ><BR>> > Shed those extra pounds with MSN and The Biggest Loser! Learn more.<BR>> <BR><BR>
<HR>
Climb to the top of the charts! Play the word scramble challenge with star power. <A href="http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan" target=_blank>Play now!</A> </BLOCKQUOTE><br /><hr />Helping your favorite cause is as easy as instant messaging. You IM, we give. <a href='http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join' target='_new'>Learn more.</a></body>
</html>