Links are updated 2001/5/21

Translated to Englishon 2000/10/11

Japanese verion created on 2000/10/10

Japanese version

About F

A subset of f95 by creators of f95. Imagine1 provides freely downloadable compilers. You need to pay the price (US$50 for educational institutions) if you decided to use it. You can also buy a CD-ROM with a book. It costs $40 + postage & handling ($20 for Japan). The parcel was delivered in a week in my case. The compilers on CD-ROM are the old versions. The one for Mac OS is based on Absoft f90 and only available on CD-ROM.

Resources

Installation

  1. Create a directory and place .tar.gz and expand it.
  2. Follow instructions in doc/F.in.

Notes

My environment

Hardware
Sun Ultra 5
OS
Solaris 8
Compiler

Link with non F objects

Link with non F objects is improved in the 2000 version of F. This version is based upon NAG f95. Options not processed by the F command are passed to gcc.

C

See the Example Code page in Imagine1 site (f_calls_c.f95, csub.c). It is a bit surprising that there is no interface for F.

f77

libF77 and libraries that are required by libF77 need to be linked. A simple case where a subroutine in addtwo.f is called by the main link_test.f95 .

$ f77 addtwo.c -c

$ F addtwo.o link_test.f95 -lF77 -lM77 -lsunmath -lFposix -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib

g77

libg2c.a should be linked with g77 and F objects.

The function version of addtwo does not work. The return value (result in F terminology) is wrong.