<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'>This or the previous seems to have broken the C mode.<div>I'm debugging.</div><div> - Jay<br><br><br><br><br><div>> Date: Thu, 6 Aug 2015 21:55:27 -0500<br>> From: rodney_bates@lcwb.coop<br>> To: jay.krell@cornell.edu<br>> CC: m3commit@elegosoft.com<br>> Subject: Re: [M3commit] [modula3/cm3] 9ee098: Add backend modes for standalone cm3-IR->llvm-IR t...<br>> <br>> <br>> <br>> On 08/06/2015 04:28 PM, Jay wrote:<br>> > Not contradicting this necessarily but I'd like a separate flag to indicate save the IR, even if it isn't being used.<br>> ><br>> <br>> Besides -keep? Writing the cm3 IR, even when using a linked-in (to cm3) backend?<br>> That would not be hard.<br>> <br>> > And then, indeed contradicting this, I wonder if "mode" is the right parameter. Maybe we can have "pipeline" and user lists a sequence of functions to call?<br>> ><br>> > Heck, maybe we should have quake functions for:<br>> > save IR<br>> > convert IR file to C in-proc<br>> > convert IR file to LLVM IR<br>> > save LLVM IR to file<br>> > etc?<br>> ><br>> > Problem is that IR cannot be represented in quake?<br>> ><br>> <br>> In working on this, I've thought about a Cartesian factoring of the various<br>> modes. But there are already way more combinations than anybody has any<br>> use for now, or even likely use. It does get complicated, figuring out<br>> the sequence of input and output file names, etc. And it's full of stuff<br>> to include files in various intermediate formats that were not produced<br>> by the cm3 compiler.<br>> <br>> > - Jay<br>> ><br>> > On Aug 6, 2015, at 1:33 PM, Rodney Bates <rodney.m.bates@acm.org> wrote:<br>> ><br>> >> Branch: refs/heads/master<br>> >> Home: https://github.com/modula3/cm3<br>> >> Commit: 9ee0988a34e2ccfe8a0d95b9e12a249f8251be66<br>> >> https://github.com/modula3/cm3/commit/9ee0988a34e2ccfe8a0d95b9e12a249f8251be66<br>> >> Author: Rodney Bates <rodney.m.bates@acm.org><br>> >> Date: 2015-08-06 (Thu, 06 Aug 2015)<br>> >><br>> >> Changed paths:<br>> >> M m3-sys/cm3/src/Builder.m3<br>> >> M m3-sys/cm3/src/llvmdummy/LLGen.i3<br>> >> M m3-sys/cm3/src/llvmdummy/LLGen.m3<br>> >> M m3-sys/cm3/src/m3makefile<br>> >> M m3-sys/cm3/src/version.quake<br>> >> M m3-sys/cminstall/src/config-no-install/Unix.common<br>> >> M m3-sys/m3middle/src/Target.i3<br>> >><br>> >> Log Message:<br>> >> -----------<br>> >> Add backend modes for standalone cm3-IR->llvm-IR translator executable.<br>> >><br>> >> On branch master<br>> >> Changes to be committed:<br>> >><br>> >> modified: m3-sys/cm3/src/Builder.m3<br>> >> modified: m3-sys/cm3/src/llvmdummy/LLGen.i3<br>> >> modified: m3-sys/cm3/src/llvmdummy/LLGen.m3<br>> >> modified: m3-sys/cm3/src/m3makefile<br>> >> modified: m3-sys/cm3/src/version.quake<br>> >> modified: m3-sys/cminstall/src/config-no-install/Unix.common<br>> >> modified: m3-sys/m3middle/src/Target.i3<br>> >><br>> >> Add new backend modes StAloneLlvmAsm and StAloneLlvmObj.<br>> >> These produce cm3-IR (.ic/.mc) in cm3, run "m3llvm" as a separate executable,<br>> >> to translate to llvm-IR bitcode (.ib/.mb), run llc to compile that, and,<br>> >> in the case of StAloneLlvmAsm, run asm separately.<br>> >><br>> >><br>> >> _______________________________________________<br>> >> M3commit mailing list<br>> >> M3commit@elegosoft.com<br>> >> https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3commit<br>> ><br>> <br>> -- <br>> Rodney Bates<br>> rodney.m.bates@acm.org<br></div></div> </div></body>
</html>