LF Fortran for .NET

What is Fortran for .NET?

Introducing Fortran for .NET

Fortran for .NET is a feature-rich Fortran implementation that provides many conveniences and abilities that have not been available to any previous Fortran language platform. It provides the Fortran programmer with a development environment that is on a par with what is available to developers of Visual Basic and Visual C++ software.

Fortran for .NET targets Microsoft's .NET Framework. The .NET compiler does not directly generate processor dependent object code, it generates Microsoft intermediate language (MSIL) code assemblies and code modules. The code in an assembly can be executed on any computer that supports an execution engine called the Common Language Runtime (CLR).

The Common Language Runtime does much more than provide the ability to operate on different operating systems, it also provides the basis for interoperability between different .NET languages, inter-language debugging, versioning, and application deployment, among other things.

Applications that are targeted for the CLR are called managed applications or managed code. Managed applications are required to be type safe and to present standardized interfaces, so that interoperability and security requirements can be met. Because some older Fortran features (like COMMON and EQUIVALENCE) can violate the CLRs rules for type safety and interfaces, certain restrictions had to be placed on .NET applications that do not allow 100% compatibility with Fortran standards. For more details on restrictions, see Restrictions on Fortran for .NET Code.

Fortran for .NET Features

Fortran for .NET consists of a Fortran compiler and associated tools, designed to help you create applications that run in the .NET Framework. Specifically it provides:

Feature comparison of Fortran 95 and Fortran for .NET

Feature

Win32 Fortran (LF95)

Fortran for .NET (LFC)

Fortran 77 compliant

Yes

Yes, with a few restrictions

Fortran 90/95 compliant

Yes

A subset of Fortran 90/95 features

Fortran 2003 compliant*

No

A subset of Fortran 2003 features

Object-oriented

No

Yes

Case sensitive source

No

Optional, default is Yes

Support for unsigned integers

No

Yes

Visual Studio.NET Projects and Solutions

Yes

Yes

Visual Studio.NET Forms Designers

No**

Yes

Support for ASP.NET Web Applications

No

Yes

Support for ADO.NET Design Wizards

No

Yes

Seamless cross-language debugging

No

Yes

Generates native code targeted to a specific type of hardware

Yes

No

Generates managed code targeted to the CLR

No

Yes

Automatic garbage collection

No

Yes

Can call Win32 DLLs

Yes

Yes

Easy access to COM Objects

No

Yes

* According to the proposed Fortran 2003 standard.

** Windows Forms design capability provided by Winteracter Starter Kit (WiSK).

See Also

Quick Links to Vital Subjects