
The First Compiler Was Closer to a Loader
Grace Hopper's A-0 system (1952) gets credited as the first compiler, but by strict modern definitions it worked more like a linker — rival candidates include Autocode and FORTRAN.
TL;DR: Grace Hopper is usually credited with the first compiler, the A-0 system she built for the UNIVAC I in 1952, which let a programmer write short symbolic codes for pre-written subroutines instead of raw machine instructions. By today's strict definition of a compiler, a program that translates a full higher-level language according to its own grammar, A-0 sits closer to what modern engineers would call a linker or loader. The honest answer to "what was the first compiler" is not a clean date but a naming dispute, with Alick Glennie's Autocode (1952) and the FORTRAN compiler (1957) among the rival candidates set against A-0, alongside other early systems such as Laning and Zierler's algebraic translator at MIT. What is harder to dispute is Hopper's underlying argument: that programmers should not have to write machine code by hand, an idea A-0 embodied even if the word "compiler" has since narrowed past what it did.
Grace Hopper's A-0, and why "first compiler" is disputed
In 1952, working for Remington Rand, which had bought Eckert-Mauchly Computer Corporation in 1950, Grace Hopper led the development of a system she called A-0, built to run on the UNIVAC I. It is one of the names often given when someone asks for the first compiler, and it is also one that gets qualified the moment a computer scientist looks closely at what it did.
The dispute is not mainly a disagreement about facts. Hopper's own 1952 paper and later histories describe what A-0 did in the same way. The disagreement is about where to draw a line between two related but distinct jobs: assembling a program out of existing pieces, and translating an entire higher-level language according to its own grammar. A-0 did the first job well. Whether that qualifies as compiling in the modern sense is the actual argument.
The problem: humans writing in raw machine code
Before A-0 existed, most programming on the UNIVAC I and machines like it meant writing instructions close to the hardware, often in numeric form tied to a specific machine's exact instruction set. An early exception on the UNIVAC was Short Code, an algebraic notation that an interpreter worked through step by step rather than translating it into a program ahead of time. Getting a program right required knowing that machine's quirks intimately, and a small error in an instruction's numeric address could be difficult to trace.
Hopper had a conviction that ran against the grain of much of the field at the time: that programmers should be able to describe what they wanted using notation closer to ordinary mathematics, and that a machine could handle the drudgery of turning that notation into instructions. Hopper later recalled that colleagues did not believe it: "I had a running compiler and nobody would touch it. They told me computers could only do arithmetic." A-0 was her attempt to prove the idea could work at all.
What A-0 actually did
A-0 let a programmer write a short sequence of calls, each identified by a compact code, to subroutines that had already been written and stored on tape, along with the data each subroutine needed to run. The system located each subroutine by its code, pulled it from the tape library, and assembled the calls together into one runnable machine-code program.
That description is why Donald Knuth and Luis Trabb Pardo's 1976 history of early programming languages puts "compiler" in quotation marks when it describes A-0. Locating pre-built pieces and stitching them into a whole is close to what a linker does today, or what a loader does when it prepares a program to run. A-0 did not parse a general higher-level language with its own grammar and translate arbitrary mathematical expressions the way a modern compiler translates source code. It automated assembly of known subroutines, which was a real and useful step, but a narrower one than the word "compiler" now implies.
The honest nuance: loader, or compiler, or both
Hopper called A-0 a compiler, and she was using the word accurately for her time: to compile meant to assemble a finished thing out of existing parts, in the same sense a person compiles a report from several documents. The word had not yet narrowed to mean "translate a full programming language," which is the sense that stuck once later systems did exactly that.
Two other candidates come up alongside A-0 when the "first true compiler" question gets pressed. Alick Glennie's Autocode, written in 1952 for the Manchester Mark 1, is sometimes credited as the first real compiler even though A-0 was completed first: Knuth and Trabb Pardo give it that title because it was actually implemented and used and took algebraic statements and translated them into machine language, rather than working from subroutine codes. The FORTRAN compiler, released by IBM in 1957, is described by IBM as the first optimizing compiler: it compiled a general higher-level language into code that ran nearly as fast as hand-written code, and it was soon widely adopted. None of these erases the others, and histories of the period also discuss earlier and parallel systems, such as Laning and Zierler's algebraic translator at MIT. Naming the candidates side by side is more accurate than picking a winner.
Hopper's larger point: programming shouldn't require machine code
Whatever the correct technical label for A-0 turns out to be, the argument behind it mattered more than the label. Hopper kept pushing the same idea forward: that a programmer's time was better spent describing a problem than hand-translating it into a machine's instruction set, and that translation itself should be the machine's job.
That conviction carried directly into her later work on FLOW-MATIC, an early language aimed at business data processing, and from there into the design of COBOL, an English-like business language in the line of her stated aim: to let people who worked in English rather than symbols use the computer easily. Later compilers, whichever one earns the strict technical title of "first," share the same underlying refusal to accept that programming had to mean writing in machine code.
A short timeline of the compiler
| Period | Milestone | What it was |
|---|---|---|
| Early 1950s | Hand-written machine and assembly code | Programmers wrote instructions close to a specific machine's own numeric or symbolic instruction set |
| 1952 | Hopper's A-0 (UNIVAC I) | Assembled programs from pre-written subroutines identified by short codes, closer to a linker than a modern compiler |
| 1952 | Autocode (Manchester Mark 1) | Alick Glennie's system, sometimes credited as a more complete early compiler for a defined notation |
| 1957 | The FORTRAN compiler | IBM's compiler for a general higher-level language, efficient enough to be adopted widely; IBM calls it the first optimizing compiler |
The table places three of the candidates side by side rather than singling one out, which is the point of the dispute this piece describes. Earlier and parallel work, including the UNIVAC's Short Code (1950), the separate 1951 work of Heinz Rutishauser and of Corrado Böhm in Zurich, and Laning and Zierler's algebraic translator at MIT (usable by May 1953), belongs to the same story. Of the three in the table, FORTRAN (1957) was the first to compile a fully general language into code that rivaled hand-written assembly.