Summary: This document provides information about the extension providing Fortran support.
Please see Fortran 1.0 - What's new for more information.
This extension provides support for applications written using Fortran languages.
In what situation should you install this extension?
If your application contains source code written using Fortran and you want to view these object types and their links with other objects, then you should install this extension.
Supported Fortran versions
This version of the extension provides support for:
Function Point, Quality and Sizing support
- Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
- Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
|Quality and Sizing|
CAST AIP compatibility
CAST AIP release
Supported DBMS servers
This extension is compatible with the following DBMS servers:
|Microsoft SQL Server|
|An installation of any compatible release of CAST AIP (see table above)|
Download and installation instructions
The latest release status of this extension can be seen when downloading it from the CAST Extend server.
CAST Transaction Configuration Center (TCC) configuration
A set of Fortran Transaction Entry Points for use in the CAST Transaction Configuration Center is delivered in the extension via a .TCCSetup file. Therefore If you are using:
- with CAST AIP ≥ 8.3.x, there is nothing for you to do: these entry points will be automatically imported during the extension installation and will be available in the CAST Transaction Configuration Center.
- with CAST AIP ≤ 8.2.x, you can manually import the file %PROGRAMDATA%\CAST\CAST\Extensions\com.castsoftware.fortran.<version>\Configuration\TCC\Base_Fortran.TCCSetup to obtain your entry/end points (see instructions below).
Manual import action for CAST AIP ≤ 8.2.x
Locate the .TCCSetup file in the extension folder: %PROGRAMDATA%\CAST\CAST\Extensions\com.castsoftware.fortran.<version>\Configuration\TCC\Base_Fortran.TCCSetup
In the CAST Transaction Configuration Center, ensure you have selected the Templates node:
This .TCCSetup file is to be imported into the CAST Transaction Calibration Center using either the:
File > Import Configuration menu option:
- Or right clicking on the Template node and selecting Import Configuration:
- The import of the "Base_Fortran.TCCSetup" file will provide you with a sample Transaction Entry points
- Now right click the "Standard Entry Point" item and select copy:
- Paste the item into the equivalent node under the Application, for example, below we have copied it into the Application MEUDON:
- Repeat for any additional items or generic sets that have been imported from the .TCCSetup file.
Prepare and deliver the source code
Once the extension is downloaded and installed, you can now package your source code and run an analysis. The process of preparing and delivering your source code is described below:
Source code preparation
- Only files with following extensions will be analyzed :
- *.h (In Fortran we can have .h file as include files...but mostly the *.inc are used as include files)
Below is the list of extensions that will enable you to tell whether the source code is a Fortran-90 or a Fortran-77 program:
Source code preprocessing
Fortran source code needs to be preprocessed so that CAST can understand it and analyze it correctly. In previous releases of the extension, this preprocessing was a manual action that needed to be completed before the code was analyzed. However, in this release and all future releases, the code preprocessing is actioned automatically when an analysis is launched or a snapshot is generated (the code is preprocessed before the analysis starts). In other words you only need to package, deliver and launch an analysis/generate a snapshot for the preprocessing to be completed.
Deliver the source code
Using the CAST Delivery Manager Tool:
- create a new Version
- create a new Package for your source code using the Files on your file system option and choose the location of your source code:
Click to enlarge
- Run the Package action.
- Before delivering the source code, check the packaging results.
Analysis configuration and execution
Refer to Analysis Configuration and Execution for more information.
Analysis log files
Analysis logs are stored in the default locations used by the CAST Management Studio.
Fortran Preprocessor log files (the preprocessor is launched automatically during an analysis) are stored in the following locations:
|CAST AIP release||Location||Log file name|
Note that the above location is the default, however, if you have modified the CAST_PLUGINS_ROOT_PATH variable in the CastGlobalSettings.ini file, this location may be different.
|≥ 8.3.x||Default location is set to C:\castms\log\<unique_application_id>\, but this location can be configured at will in the CAST Management Studio "Preferences".|
What results can you expect?
|Fortran Do Construct|
|Fortran External Function / Fortran Internal Function|
|Fortran External Subroutine / Fortran Internal Subroutine|
|Fortran IF Construct|
|Fortran IOSTAT Variable / Fortran STAT Variable|
|Fortran Select Case|
The following structural rules are provided:
You can also find a global list here:
The following rules/metrics are not triggered during a Fortran analysis:
- Class Fan-in distribution
- Class Fan-out distribution
- Class Complexity distribution
- SQL Complexity distribution
- OO Complexity distribution
- Copy/Paste metrics
- Other generic diagnostics present in CAST AIP