wiki:QuickStart

Version 1 (modified by rtoy, 2 years ago) (diff)

--

Quick Start to Using F2CL

First, you need to load f2cl. This can be done simply with

  (asdf:oos 'asdf:load-op :f2cl)

assuming that asdf can find f2cl.asd.

Once F2CL is loaded, you can convert a Fortran file to Lisp using

  (f2cl:f2cl "src.f")

This will convert the Fortran code in src.f and place the translation in src.lisp.

Or you can convert and compile the result using

  (f2cl:f2cl-compile "src.f")

This does the conversion and then calls COMPILE-FILE to compile the resulting Lisp code.