Elsevier Science Home
Computer Physics Communications Program Library
Full text online from Science Direct
Programs in Physics & Physical Chemistry
CPC Home

[Licence| Download | New Version Template] acea_v1_0.gz(48 Kbytes)
Manuscript Title: The OLYMPUS Fortran compositor.
Authors: M.H. Hughes, K.V. Roberts
Program title: COMPOS
Catalogue identifier: ACEA_v1_0
Distribution format: gz
Journal reference: Comput. Phys. Commun. 29(1983)45
Programming language: Fortran.
Computer: PRIME 750.
Operating system: PRIMOS.
RAM: 50K words
Word size: 32
Peripherals: disc.
Keywords: General purpose, Utility, Olympus, Programming practice, Fortran, Documentation, Automatic code Generation, Word-processing, Text formatting.
Classification: 4.14, 20.

Subprograms used:
Cat Id Title Reference
ABUF_v1_0 OLYMPUS CPC 7(1974)245
ABUF_v2_0 OLYMPUS FOR IBM 370/165 CPC 9(1975)51
ABUF_v3_0 OLYMPUS FOR CDC 6500 CPC 10(1975)167

Nature of problem:
The COMPOSITOR is a word-processing program that converts a free-format Fortran input file to standardized OLYMPUS form. It is used for the semi-automatic construction and maintenance of OLYMPUS software, and can also be used for tidying-up existing Fortran codes in order to make them better structured and more readable. A variety of comment styles is allowed for.

Solution method:
The input file is read in A-format, line by line, and temporarily converted into unpacked integer format for processing. It is then stored in packed format prior to output.

Restrictions:
The COMPOSITOR is written in OLYMPUS form in ANSI Fortran 66 and should run on any type of computer system provided that the OLYMPUS system is installed and that suitable character packing and unpacking routines are available. Versions of these routines are provided for the PRIME and IBM computers. It mainly handles ANSI Fortran 66 code but could readily be extended to deal with ANSI Fortran 77 or dialect statements. It processes a sequence of subprograms one-by-one. The table sizes can be extended if required.

Running time:
37.4 lines/s of CPU time on the PRIME 750, plus 0.55 s setting-up time.