Home

Command-Line Operations

When Simply Fortran for Windows is installed using the Windows App Package with the .msix extensions, common development tools are available from the Windows Terminal, Command Prompt, or Powershell. These tools allow users to utilize development tools from a terminal anywhere on Windows. The tools are implemented as “App Execution Aliases.”

If Simply Fortran is installed from a zip file, the system path can be updated to provide the same functionality. Two directories must be added to the system path if using the zip file:

  • < extracted zip location >\SimplyFortran-< version >\fwin
  • < extracted zip location >\SimplyFortran-< version >\mingw-w64\bin

The extracted zip location and version should be replaced with the proper values. Modifying the path is unnecessary when using the msix package.

Compilers and Related Tools

Simply Fortran provides the following executables:

Executable Description
gfortran The GNU Fortran compiler
gcc The GNU C compiler
ar The archiving tool generally used for constructing static libraries
windres A Windows resource compiler
dlltool A utility for handling Windows dynamic link libraries, including generating import libraries and definition files
nm A utility for listing symbols within an executable or library

Build Utilities

The following build utilities are provided:

Executable Description
wmake The Open Watcom Make utility used to execute makefiles generated by Simply Fortran
sfprjtk The Simply Fortran Project Toolkit is a command-line utility for handling Simply Fortran projects directly, including generating makefiles and builing

Debuggers

Simply Fortran on Windows provides two separate debuggers for 32- and 64-bit binaries:

Executable Description
gdb32 The GNU Debugger for 32-bit executables
gdb64 The GNU Debugger for 64-bit executables

Disabling Command Line Tools

On Windows 11, Simply Fortran’s command line tools can be disabled from the Settings application. This procedure might be necessary if, for example, a developer already has a prefered GNU Fortran installation on the system path that they would prefer to use rather than Simply Fortran’s version. The following steps can be used to disable Simply Fortran’s command line tools:

  1. Open the Settings application
  2. Select Apps from the settings categories
  3. Select Advanced app settings under the Apps items
  4. Select App execution aliases under the Advanced app settings items
  5. Switch on or off the Simply Fortran executables that you wish to have available

All Simply Fortran items will have the Simply Fortran icon to their left.