<div dir="ltr">Thanks for your replies.<div>Working on the lfort compiler would certainly be an interesting project for me for this GSoC. I have studied lfort repository and commits, and I see that it has a lot of stuff for C/C++, am I correct that this is a fork of Clang? If this is correct, I wonder why this approach was chosen instead of starting out from scratch - is it because Clang already has a lot of code which can be reused for the Fortran compiler? I'm also unfamiliar with Clang and I was a bit overwhelmed when I saw the lfort repository at first because of this. If I were to work on this project, would I be required to use the Clang code?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/13 Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">----- Original Message -----<br>
> From: "Anton Korobeynikov" <<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>><br>
</div><div class="im">> To: "James Courtier-Dutton" <<a href="mailto:james.dutton@gmail.com">james.dutton@gmail.com</a>><br>
> Cc: "Hal Finkel" <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>>, "Bill Wendling" <<a href="mailto:isanbard@gmail.com">isanbard@gmail.com</a>>, "LLVM Developers Mailing List"<br>

> <<a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>><br>
</div><div class="im">> Sent: Saturday, April 13, 2013 9:12:39 AM<br>
> Subject: Re: [LLVMdev] GSoC project questions.<br>
><br>
</div><div class="im">> > I agree that creating a complete Fortran compiler is a huge effort.<br>
> > But what about approaching it from a test driven development<br>
> > perspective?<br>
> > We start with a few small Fortran programs as "test cases".<br>
> > The GSoC task then gives the task as getting test case 1 to work.<br>
> > We could also apply this of "lfort". Determine a test case that<br>
> > currently<br>
> > fails on lfort, and ask the GSoC task to pass the test.<br>
> All this make sense only if there is interested party in long-term<br>
> development and maintenance. Otherwise the code will bitrot really<br>
> quickly and thus will be waste of time and money. Is there such a<br>
> party?<br>
<br>
</div>I am certainly interested in long-term development and maintenance. I think that the first step toward making a useful Fortran compiler is this:<br>
<br>
 1. It should be able to compile BLAS: <a href="http://www.netlib.org/blas/" target="_blank">http://www.netlib.org/blas/</a> (these are Fortran 77, and have no I/O, so should be relatively simple)<br>
<br>
 2. If that is complete, then move on to LAPACK: <a href="http://www.netlib.org/lapack/index.html" target="_blank">http://www.netlib.org/lapack/index.html</a> (these use some subset of Fortran 90)<br>
<br>
As you can see from the test cases currently in lfort, most of the driver functionality and lexical analysis (for both Fortran 77 and 90) is done, and I've started on parsing (and semantic analysis and codegen for) variable declarations and some simple statements. I think that a motivated student could make a lot of headway, and should be able to at least finish step 1. Thoughts?<br>

<span class="HOEnZb"><font color="#888888"><br>
 -Hal<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> --<br>
> With best regards, Anton Korobeynikov<br>
> Faculty of Mathematics and Mechanics, Saint Petersburg State<br>
> University<br>
><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>