Re: [Rd] Free-form to fixed-form Fortran

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 27 Aug 2005 - 08:36:12 GMT

On Sat, 27 Aug 2005, Ales Ziberna wrote:

> Thank you for your reply!
>
> I know I can use g77 with -ffree-form. However, I do not know how to make a
> package so that when others would build a package, these subrutines would
> compile with "-ffree-form". I heard of "makevars" and flags, however I read
> on the mailing list archives that they are ignored on Windows.

-ffree-form is compiler-specific: it will not work on Sun's f77 for example, and Sun's f95 needs -free. The only way to make a portable package is to use standard code layout as described in the link at

http://developer.r-project.org/Portability.html

Whatever you heard `on the archives' is incorrect. The correct information is in the R-admin manual: reading that is part of the homework expected before posting.

>
> Ales
>
>
> ----- Original Message -----
> From: "Simon Urbanek" <simon.urbanek@r-project.org>
> To: "Alea }iberna" <ales.ziberna@guest.arnes.si>
> Cc: "R Development Mailing List" <r-devel@stat.math.ethz.ch>
> Sent: Friday, August 26, 2005 8:29 PM
> Subject: Re: [Rd] Free-form to fixed-form Fortran
>
>
> Aleai,
>
> On Aug 26, 2005, at 10:36 AM, Alea }iberna wrote:
>
>> I have writen some subrutines in Free-form Fortran. I would like to
>> includ
>> them in a package, which I would like to build on WinXP. I have all
>> suggested tools/programs for bulding R packages on Windows (except
>> latex).
>>
>> What is the best way of using these subrutines? Does sombody mybe
>> know any
>> translation tools for converting Free-form to fixed-form Fortran?
>
> If your only concern is to build it, you may try using g77 with -
> ffree-form. This should work with GNU Fortran. However, that limits
> the availability of your package to GNU compilers only.
>
> Cheers,
> `imon
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat Aug 27 18:40:07 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:44 GMT