NAG Fortran Compiler
Description
The NAG Fortran Compiler is a full standard implementation of the ISO Fortran 95 language with the addition of almost all Fortran 2003, some Fortran 2008 and the most commonly-used features of OpenMP 3.0. Its development is based on the NAGWare f90 Compiler which was the world's first Fortran 90 compiler. Like its predecessor, the NAG Fortran Compiler has been thoroughly tested and widely used since its launch in 1997.
In addition some common extensions to Fortran 77 are allowed to provide support for legacy code. For example, the NAG Fortran Compiler allows processing of code containing tab format input, byte-sized declarations (e.g INTEGER*2) and DOUBLE COMPLEX.
Details of the Fortran 2003 language capabilities
Details of the Fortran 2008 language capabilities
The NAG Fortran Compiler includes a large part of OpenMP 3.0.
Details of OpenMP capabilities
Extensive error messages are given by the compiler, both those required by the ISO standard and additional compile and run-time information. The messages are informative rather than cryptic and usually contain context information to assist in identifying and rectifying problems. For this reason the Compiler is particularly suited to teaching and for programmers wishing to update their skills to the new language. Programmers who wish to produce portable, standard-conforming code will benefit from the analysis carried out by the Compiler
The NAG Fortran Compiler features many optional run-time checks, including - array bounds, pointer association, pointer references, procedure references, dangling pointers and undefined variables. There are also facilities to trace memory allocation and deallocation and help to identify memory leaks.
Compile-time error messages may optionally be colour coded, to highlight serious errors. An option is provide to produce a traceback showing the call stack if a run-time error occurs.
Built-in modules provide an interface to a large number of Posix system calls, e.g. SYSTEM, and many others.
Automatic garbage collection is available as an option. This prevents memory leaks by deallocating memory that can no longer be accessed by the program.
In addition NAG Fortran provides software tools to convert fixed-format code to free-format, pretty print or polish code, list dependency information of modules and include files and produce callgraphs.
An extensive user manual is provided in a PDF file as part of the product distribution.
A maintenance service is available for the compiler giving access to bug fixes and new releases.
Availability
The NAG Fortran Compiler is available on a range of platforms. For up-to-date information click on the availability button.
If your machine and operating system combination are included in the current list of implementations then the only additional requirement is that you have a C compiler available, except on Microsoft Windows where the required C compiler is included with NAG Fortran. In general this will be the default C compiler for the target machine, e.g. gcc.
If you require any further information on availability then please call us to advise us of your requirements.
Documentation
NAG Fortran Compiler Documentation Index and FAQs
Release Information
General Compiler Information
- What's New in Fortran 2003
- J3 Technical Reports
- Performance Tips
- Notes on using the NAG Fortran Compiler under Linux to generate MATLAB gateways
Backgound Papers
Product Availability
The NAG Fortran Compiler is available now on all major Unix platforms. For users of Microsoft Windows NAG has developed NAG Fortran Builder, a new Integrated Development Environment (IDE) for the NAG Fortran Compiler.
| Product | Platform | Release | Comment |
| Windows | |||
|---|---|---|---|
| NPW3253NA the NAG Fortran Compiler |
x86 and x86-64 Windows | Release 5.3 | |
| Linux | |||
| NPL6A53NA the NAG Fortran Compiler |
Linux64 | Release 5.3 | gcc 4.1.2 |
| NPLUX53NA the NAG Fortran Compiler |
Linux x86-32 | Release 5.3 | gcc 3.2.2 |
| MAC OS X | |||
| NPMI653NA the NAG Fortran Compiler |
Apple Intel Mac64 | Release 5.3 | gcc 4.2 |
| Solaris (SPARC) | |||
| NPSOL53NA the NAG Fortran Compiler |
Sun SPARC Solaris | Release 5.3 | Sun C v 5.9 |
| NPSOL52NG the NAG Fortran Compiler |
Sun SPARC Solaris | Release 5.2 | gcc 3.4.2 |
| IBM | |||
| NPZ9O52NA the NAG Fortran Compiler |
IBM Z9 Open Edition | Release 5.2 | IBM C |
| NPZ9L51NA the NAG Fortran Compiler |
IBM Z9 Linux | Release 5.1 | gcc 3.4.6 |
| NPIB651NA the NAG Fortran Compiler |
IBM Power AIX | Release 5.1 | AIX XL C 6.0 |
| HP PA-RISC | |||
| NPH9751NA the NAG Fortran Compiler |
HP PA-RISC 1.1 | Release 5.1 | HP ANSI C |
To learn more about the NAG Fortran Compiler select any of the following links or contact us to discuss your needs.
- Compiler Release Notes
- Contents
- Technical Tips & Hints
- Compiler FAQs
- Fortran: A few historical details
- Fortran Builder
- History of the NAG Fortran compiler
- What's New in Fortran 2003
- What's New in Fortran 2008
- Technical Reports: IEEE Arithmetic & ALLOCATABLE attribute
- Contact Us
- Buy the NAG Fortran Compiler Online Now