Liam,<br><br>I think Tamas Papp is much ahead of me in terms of linking 
cl to f77 arrays (especially on SBCL).  Your best bet might be to 
somehow link to his LLA package (<a href="https://github.com/tpapp/lla">https://github.com/tpapp/lla</a>).  I 
suspect that his package also grovels through the f77 libraries, 
automatically generating CL defun's.  But once I could not find what I 
was looking for, I stopped digging.<br><br>My work originates from the 
need to link to one or two subroutines for special functions that were 
note available via gsl (and gsll/antik).  <br><br>Ideally, there would be a suite of four (or fewer) packages that provide<br>- examples of linking (as the current package does)<br>- automatic defun generation (something like defun-fortran-call ...)<br>
- groveller<br>- interfaces to particular libraries (lapack, netlib, toms)<br>Ideally those would be four packages, so that the user can choose which one suits him best.<br><br>It
 might be best to discuss with Tamas, and with his guidance extracts 
parts of LLA into separate packages, that he can then also use in LLA.<br>
<br>
Mirko<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 4:30 PM, Liam Healy <span dir="ltr"><<a href="mailto:lnp@healy.washington.dc.us">lnp@healy.washington.dc.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mirko,<br><br>Thank you for this work.  I'm interested in building interfaces to Lapack etc. using Antik.  In the foreign-array definitions, I have an option :linearization which can be either :row-major or :column-major; it defaults to the former.  I even have <a href="http://repo.or.cz/w/antik.git/blob/4d37965fa7712b968ac4d2d6dd743b1e707e47c1:/foreign-array/foreign-array.lisp#l206" target="_blank">make-fortran-array</a>, but it's not built out closer to the user further than that.  I will take a closer look at your code later (unfortunately, too busy with other things now), but if you have thoughts on how Antik should go, I'd be very interested to hear about them.<br>



<br>Thanks.<span class="HOEnZb"><font color="#888888"><br>Liam<br><br></font></span><div class="gmail_quote"><div><div class="h5">On Thu, Dec 29, 2011 at 9:19 PM, Mirko Vukovic <span dir="ltr"><<a href="mailto:mirko.vukovic@gmail.com" target="_blank">mirko.vukovic@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello,<br><br>Several projects (lla, blapack among them) link common lisp (cl) to fortran 77 (f77)code.  Unfortunately, being totally unfamiliar with cffi, I was having trouble using those packages to learn how to link cl to other f77 code.<br>




<br>To learn more about calling f77 code from CL, I assembled a bunch of simple examples (using cygwin+clisp+gfortran).to show how to pass values of various types to f77.<br><br>I have put up the examples on <a href="https://github.com/mirkov/cffi-f77" target="_blank">https://github.com/mirkov/cffi-f77</a>.  I tried to add enough documentation to make the package easily understandable. <br>




<br>I hope this proves useful to others.  I would appreciate comments regarding errors and improvements.<br><br>And, as always, thanks for cffi :-)<br><font color="#888888"><br>Mirko<br>
</font><br></div></div><div class="im">_______________________________________________<br>
cffi-devel mailing list<br>
<a href="mailto:cffi-devel@common-lisp.net" target="_blank">cffi-devel@common-lisp.net</a><br>
<a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>