<div dir="ltr"><div class="gmail_extra">Hi,</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 5:55 PM, Paul Bone <span dir="ltr"><<a href="mailto:paul@bone.id.au" target="_blank">paul@bone.id.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Do we support or is there an effort to support bootstrapping in the Java<br>
backend?<br></blockquote><div><br></div><div>Not really. The compiler itself should build in the java grade and also the</div><div>csharp grade. It might also build in the erlang grade, I haven't checked recently.</div>
<div>However, in terms of performance none of those three result in a compiler</div><div>that is even remotely competitive with one created by the two C backends.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've added a new Mercury program to util/ called mfilterjavac </blockquote><div><br></div><div>You cannot have Mercury programs in that directory. There's no way</div><div>it could be compiled with the source distribution. The contents of the util</div>
<div>directory are the first thing that is built (i.e. before the standard library, which</div><div>we we would need to link any Mercury program against).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It re-write javac's output to fix error locations in .java files to put to the correct<br>
line in the original .m file (for foreign code). Because the java backend<br>
now uses this program, but the program is written in Mercury have I created<br>
a bootstrap problem? </blockquote><div><br></div><div>You've created a problem by putting Mercury code in the util directory.</div><div>In any case, the Mercury compiler itself should have an option to disable</div><div>
filtering of javac output through mfilterjavac.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Or is this okay becase we will always build the system for C first?<br>
</blockquote><div><br></div><div>No, see above. Is there any reason that mfilterjavac cannot be implemented</div><div>in C, as per mfiltercc.</div><div><br></div><div>Cheers,</div><div>Julien.</div></div><br></div></div>