Fortran#

Fortran is one of the earliest computer languages, and among the most influential. In comparison to COBOL and other early languages that have largely disappeared, Fortran remains in use to this day and sees continued development and standardization. For Atari users, it is more important as the basis for the BASIC language, which is essentially a cut-down interpreted (as opposed to compiled) version of Fortran66.

Fortran was written to help write high-performance math programs for use in science and engineering. Early versions lacked many features found in other programs, most notably strings, as these were not needed in scientific programs. Fortran77 included most of these features and had parity with typical BASICs of that era. However, as a compiled language, it ran much faster than any BASIC available.

As of 2016, there is still no Fortran for the Atari 8 bit home computers, which is very sad, because in science, this language has played a big role. However, there was a Fortran for the Apple II written in 6502 assembly language. Maybe there will be a time, when we get the source code for this Apple version and can port this to the Atari? For the first step, AtariWiki has collected the info about Fortran for the Apple II, please see below. So, if there is anyone out there, who is in the possession of the original Apple II source code of Fortran, please be so kind and give it to us. Thank you so much in advance.

Infos#

(1):#

Released by Apple in 1980, Apple FORTRAN ran under the Pascal operating system. It cost $200 (over and above the $495 needed to get the Language System). Programs written in FORTRAN for other computers could run with little modification under Apple FORTRAN (if a user needed that ability). It compiled to a similar code as did Pascal programs, so was not any faster than Pascal. Apple’s version of FORTRAN had many bugs in it, though, and after its introduction in 1980 it was never upgraded. By September 1986 it had disappeared from their product catalogs.

Another way for an Apple II user to get FORTRAN was to buy the Microsoft Z-80 Softcard for $345 and Microsoft FORTRAN for $200. This version of FORTRAN was more full-featured than Apple’s, and offered some advantages in usability. It did not require changing to the 16-sector disk controller ROMs (if you didn’t want to). Also, standard Microsoft BASIC (which was more advanced than Applesoft) was included in the Softcard package.

In June of 1987 Pecan Software released FORTRAN for the IIGS. It ran under ProDOS 16 (GS/OS), but still used the UCSD Pascal disk format for its FORTRAN by creating a ProDOS file that then acted as a UCSD Volume.

(2):#

Cabot FORTRAN 77
Runs on Apple I(?), IIgs, Mac, MS-DOS, CP/M and Unix boxes. Claims the 'worldwide software licence (sic) for software products developed by the University of California, San Diego (UCSD).

Address:
The Vicarage
Stoke View Road
Fishponds
Bristol BS16 3AE
England UK

Telephone: 00 44 272 586644
Fax: 00 44 272 586023
BBS: 00 44 272 583023

Compuserve address: 100014,241

(3):#

PRO FORTRAN-77
Prospero Software
190 Castlenau
London SW13 9DH
England
$149

Reviewed by Mike Fleischman

Prospero Pro Fortran-77 is a full implementation of the ANSI standard version of Fortran-77. The program comes with a manual and a disk containing the two-pass Fortran compiler and the linker. It does not come with an editor, however, so you will need a text editor or word processor to use this package.
I found I could use the software on either the ST's double-sided disk drive or two single-sided drives. The compiler supports all GEM AES and VDI calls as well as the TOS environment commands. Writing a program with full GEM support should be relatively easy.
This is a very complete Fortran package. The language supports 1-, 2- and 4-byte integers and logicals, 4 and 8-byte floating point numbers and complex numbers. As in standard Fortran the lines are 72 columns long and character names can be only six characters. Implicit type checking is also implemented as well as the standard default Fortran work file. The most files you can have open at one time is 15. GEM support deviates from the Fortran standard, because the company followed all the C definitions for the VDI and AES interfaces.
The first thing you will discover about the Pro Fortran compiler is that the language requires a memory resident section to be installed before anything else will run. This brings up an interesting question: Does Prospero want royalties for use of their memory resident section? I found that their copyright agreement states that you are buying this package for your sole use only and that you will not disassemble or alter the software for your own use.
From this I would conclude that if you intend to use this software for anything other than your own use, you'd be wise to contact Prospero Software for any agreements necessary. The compiler and linker prompt you for the necessary information. The compiler also has optional prompts for all compile parameters. There is also a configuration program to customize the default settings. The compile time is relatively fast and the resulting code is compact. The only real hitch to writing your own program is the lack of an editor. I used a Sieve test to measure the speed of the compiler on my 520ST (with one megabyte of memory and two disk drives). I found that the program compiled and linked in two minutes and 46 seconds, producing a program 4,758 bytes long. My running time for this program was 11 minutes and eight seconds, compared to 13 minutes, 21 seconds for ST Basic, and 2.53 seconds for Digital Research C.
Fortran-77 follows all the standard Fortran syntax and you should have no trouble moving your source code to a mainframe computer once it is running. I was impressed with the quality of the package and the ease of its use, but the copyright agreement would make me want a second look. Also, I am concerned that the program runs so slowly. But this is generally a very good implementation of Fortran-77. If you are a programming student or need to learn or use Fortran-77 in your college studies, this would be a worthwhile investment.

Source Code#

Who can help us with the source code of the Apple II Fortran? AtariWiki really appreciate any help in this case. Thank you so much in advance. :-)

Images (for the Apple II)#

The SST was used to convert the disk FORT2 to the nib format. It is verified, that it works with ApplePC v2.52. It is also a modified version corrected to work with APPLESTUFF (as you may recall, Apple Fortran uses the Apple Pascal architecture, APPLESTUFF is a library for turtle graphics and sound). If you want to format a new disk you would also need to get a copy of Pascal, APPLE 3.

Manuals#

References#

Images#

Apple FORTRAN Manual cover from 1980

Original Fortran from IBM