CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

The program in the Atlas Autocode manual does not compile. Its printout shows what ran.

Atlas Autocode rebuilt from its 1965 manual, with both compilers and the Flexowriter it was typed on, prints the words of all 29 lines of the one full page COMPILER AB printed that survives with its program. The program printed beside it would have stopped at line 12.

ABOUT THIS NOTE +

A note about rebuilding Atlas Autocode, the language of the Ferranti Atlas at Manchester, from Brooker and Rohl’s Reference Manual of 1965 with a coding agent: both of its compilers, AA and AB, the Atlas arithmetic, and the Friden Flexowriter on which its programs were typed, underlined word by word with the backspace key. The compilers are lost. Two pages that COMPILER AB printed survive with the programs that produced them: a program map and run-time monitor in the manual’s Amendments, and a table of binomial coefficients in the Mini-Manual of July 1965. The rebuilt compiler prints the same words as all 29 lines of the first, and the second’s table number for number. It also shows that the program printed beside the first page would not have compiled: it declares a′ and assigns a″. The printout lists a″ where a′ is declared, so the program that ran was most likely not quite the program that was printed. The second page’s map counts a line its listing does not have, and the first program in the manual prints a sum of squares of −125.3.

N-ATLAS-AUTOCODEOPENRECORDED 2026-11-25PUBLISHED · V1.0CITE ↓FOLLOW ↓

01 / TYPED ON A FLEXOWRITER

Atlas Autocode was the language of the Ferranti Atlas, which Manchester University and Ferranti put into service in 1962. Tony Brooker’s group wrote it, and Brooker and J. S. Rohl’s Reference Manual of March 1965 defines it. It is close kin to ALGOL 60, with blocks, recursive routines and arrays sized when the block is entered, but it was written for the keyboard it was typed on: a Friden Flexowriter, an electric typewriter that punched paper tape. The keyboard had no underlined letters and no ≠. The words of the language were underlined by typing the word, backspacing, and typing underlines over it; ≠ was = with / struck over it, and even the semicolon was a colon struck over a comma. Atlas rebuilt each line as the paper showed it, and spaces did not count at all. I asked a coding agent to build the language from the manual, with the Flexowriter as its input: a line is a row of positions, each holding the symbols struck there.

Brooker and Rohl, Atlas Autocode Reference Manual, 1965 (scan) ↗

02 / TWO COMPILERS, AND ATLAS ARITHMETIC

In 1965 there were two compilers. COMPILER AA is the language of the Reference Manual. COMPILER AB, described in Amendments bound into the same manual and in Lunnon and Riding’s Mini-Manual of July 1965, dropped complex numbers, own variables and some checks, and rounded a real put into an integer where AA refused it when compiling. The job description at the head of the tape chose between them, and does here. The arithmetic is Atlas’s, from Ferranti’s description of the machine: a 40-bit fraction and an octal exponent, each result formed exactly and then rounded “by forcing a one into the least significant bit” if anything was lost. So .1 added ten times is not 1. The store is a model of the Atlas stack, word by word, and as the manual warns, nothing is cleared between one routine and the next.

Lunnon and Riding, The Atlas Autocode Mini-Manual, July 1965 ↗The Atlas Bible, §3.1 and §8.7 ↗

03 / WHAT COMPILER AB PRINTED

The compilers do not survive, so there is nothing to run the rebuilt one against. What survives is output. The Amendments end with a short program, a routine that calls a routine that calls a function that takes the square root of −2, and the page COMPILER AB printed for it: a program map, then the run-time monitor, which lists every block and routine that was running, with its variables and its cycles. The rebuilt compiler prints the same words in the same order, all 29 lines, apart from the machine addresses and code sizes in the map, which belong to machine code it does not write. The page was typed again for the manual, so its spacing is not compared. The serial numbers, 91 to 94, follow the order of the routine specifications, not of the routines. The line numbers count from 1 and leave blank lines out, so line 33 is the square root. The monitor shows only the variables declared in each routine that are not zero, not the parameters, and says the function’s first cycle has gone round 0 times and its second was never entered.

04 / ONE PRIME

Run as printed, the program on the facing page does not reach the square root. Its second line declares a′, with one prime, and its twelfth sets a″, with two. To the compiler they are different names, so it stops at line 12 with NAME a″ NOT SET, and the program is never entered. The printout points to which was meant: the monitor lists a″ = 21.6 sixth among the reals of the main block, exactly where a′ is declared. The likely reading is that the program COMPILER AB ran declared a″, and the listing, typed out again for the manual, dropped a prime. The tape is lost, so that cannot be proved; the printout could have been edited instead. Neither page could have caught it alone: the listing looks right, and the printout has no listing. The interpreter caught it only because it was given both.

05 / A LINE THE LISTING DOES NOT HAVE

The Mini-Manual’s sample program tabulates binomial coefficients, and its next page shows what COMPILER AB printed. The table comes out character for character. The program map agrees as far as line 9, where an inner block begins; after that every line number on the page is one more than the listing gives, 27 where the listing has 26, through to the end of the program. The listing was redrawn for the Mini-Manual with boxes round its blocks, and may have lost a line on the way; or the map may have been edited. The pages do not say which.

06 / THE FIRST PROGRAM IN THE MANUAL

The Reference Manual opens with a program that fits a straight line to sets of points and prints, it says, “the sum of the squares of the deviations”. Its formula has + 2abΣX; its program has − 2a*b*Sx. For five points near y = 2x + 1 the program prints −1.253α 2, a sum of squares of −125.3; with the sign put right it is 0.107. The manual printed no output for this program, so nothing on the page shows the mistake. Both scans that could be read have the minus sign. The manual also says that the constant 'a' is 33, which its own table gives to A.

WHAT THIS DOES NOT SHOW

  • Two pages are the whole of the evidence about what the compilers printed, and both are COMPILER AB. No output of COMPILER AA survives with its program; its map and monitor follow the manual’s description and examples, which are illustrations, not runs.
  • The layout of the AB monitor, which variables it shows and how many to a line, was read off the same page it is tested against. Agreement there is not independent. What is independent is what comes from running the program: the line and serial numbers, the values, the counts of each cycle.
  • The arithmetic follows Ferranti’s description of the machine. The pages show four or five digits of each number, which does not test the last bits. The standard functions are computed in modern double precision, because the Atlas routines for them have not been found.
  • Both pages were retyped for the documents they are printed in, so they are compared word for word, not character for character, and they may have been changed in retyping, as the listings were.
  • Everything here, including the transcriptions of the programs from the scans, was read and built by a coding agent over one day. The scans are linked so that they can be checked by eye.
  • A second model, OpenAI’s Codex, reviewed the repository independently before this note was published. It found eighteen problems, among them a tab stop misread from the Mini-Manual, large constants turned into wrong numbers, and claims of agreement “to the character” where the test compares words. All are fixed or reworded, and each is now a test; the review is in the repository.
  • Nothing here is claimed as new. The manuals were kept and put online by the Edinburgh computer history project and others; the language’s history is well told elsewhere.

A listing typed for a manual is a copy. Where the listing and the machine’s own page disagree, the page is the better witness to what ran.

OPEN

What else did Atlas print that survives with its program?

Two pages are enough to find a dropped prime and a missing line, and not enough to test the arithmetic or COMPILER AA. Listings and output of real Atlas jobs, in archives at Manchester, Chilton or Edinburgh, would be the next test.

PUBLICATION HISTORY

Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.

  1. V1.0 · 2026-11-25 ↗

    First published: Atlas Autocode rebuilt from the 1965 Reference Manual, both compilers and the Flexowriter; the words of all 29 lines of COMPILER AB's page B1.4 reproduced, and the Mini-Manual's binomial table; the listing of p. B1.3 would not compile as printed; reviewed independently, eighteen findings acted on; with a playground that types on a Flexowriter. OPEN

    Display amended: the statements about how the work was done were removed. The stored summary is unchanged. 2026-11-27

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  2. V1.1 · 2026-11-27 ↗

    Removed the statements about how the work was done; nothing about the results changed OPEN

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

MACHINE-READABLE HISTORY ↗

SOURCES & PROVENANCE

AUTHOR / Chris Hay · VERSION / 1.0

PUBLISHED 25 NOV 2026 · VERSION 1.0

CITE

CITE THIS

Research note · 1.0

Hay, C. (2026). The program in the Atlas Autocode manual does not compile. Its printout shows what ran. (Version 1.0). Chris Hay. https://chrishayuk.com/records/N-ATLAS-AUTOCODE/1.0