<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Here is what I get: some "crash", some "fail", some get the file format mixed up, some work!<div>6 modes. 4 crash, 1 appears to work, 1 appears close</div><div><br></div><div><br></div><div><div>jair:m3core jay$ for a in \</div><div>IntLlvmObj \</div><div><span style="font-size: 12pt;">IntLlvmAsm \</span></div><div>ExtLlvmObj \</div><div>ExtLlvmAsm \</div><div><span style="font-size: 12pt;">StAloneLlvmObj \</span></div><div>StAloneLlvmAsm; \</div><div><br></div><div>do rm AMD64_DARWIN/RT0.io ; echo $a;cm3 -DM3_BACKEND_MODE=$a -keep -commands; done</div><div><br></div><div><span style="font-size: 12pt;">IntLlvmObj</span></div><div><span style="font-size: 12pt;">*** runtime error:</span></div><div>*** Segmentation violation - possible attempt to dereference NIL</div><div>*** pc = 0x1030edca3 = set_error_handler + 0x5b in ../src/M3CG.m3</div><div>***</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">IntLlvmAsm</span></div><div><span style="font-size: 12pt;">*** runtime error:</span></div><div>*** Segmentation violation - possible attempt to dereference NIL</div><div><span style="font-size: 12pt;">***</span></div><div><br></div><div><span style="font-size: 12pt;">ExtLlvmObj</span></div><div><span style="font-size: 12pt;">*** runtime error:</span></div><div>*** Segmentation violation - possible attempt to dereference NIL</div><div>*** pc = 0x10e8b0ca3 = set_error_handler + 0x5b in ../src/M3CG.m3</div><div><br></div><div><span style="font-size: 12pt;">ExtLlvmAsm</span></div><div><span style="font-size: 12pt;">*** runtime error:</span></div><div>*** Segmentation violation - possible attempt to dereference NIL</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">StAloneLlvmObj</span></div><div><span style="font-size: 12pt;">m3llvm -b -d -o RT0.ib RT0.ic</span></div><div>llc -disable-fp-elim -filetype=obj -relocation-model=pic RT0.ib -o RT0.io</div><div><br></div><div><div><span style="font-size: 12pt;">=> success?</span></div></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">except for:</span></div><div><span style="font-size: 12pt;">error: /Library/Developer/CommandLineTools/usr/bin/libtool: file: RT0.io is not an object file (not allowed in a library)</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">StAloneLlvmAsm</span></div><div><span style="font-size: 12pt;">close, maybe just a config problem</span></div><div><span style="font-size: 12pt;">m3llvm -b -d -o RT0.ib RT0.ic</span></div><div>llc -disable-fp-elim -filetype=asm -relocation-model=pic RT0.ib -o RT0.is</div><div><span style="font-size: 12pt;">fg++ -m64 -arch x86_64 -c -x assembler RT0.is -o RT0.io</span></div><div>RT0.is:5:2: error: unknown directive</div><div><br></div><br></div><div>I assume we should ignore Int and Ext and focus on StAlone for now.</div><div><br></div><div><br></div><div> - Jay</div> </div></body>
</html>