George Blank had spent years paying $300 and up for Pascal compilers, and he thought the IBM, Microsoft and UCSD versions were mediocre. He put up with them anyway. Even the smallest program on IBM Pascal meant four minutes of disk swapping, the floppy drives grinding while the compiler shuffled through 12 intermediate files.
Then he tried Turbo Pascal. He took a program written for IBM Pascal and converted it in under 30 minutes. He pressed the key and braced for the grind of the floppies, but the compile was already done in 10 seconds. He tried the small programs that used to leave him waiting minutes, and they finished before he could lean back. Then he tried the long ones, the compiles he used to start and walk away from, and he never got out of his chair. Over the following months he noticed the change in his work. A program that once took weeks to write now took days.
How could that happen? The answer does not begin in California, where the product was sold. It begins in Denmark.

A cassette compiler from Denmark
In 1981, Anders Hejlsberg wrote a Pascal compiler for a microcomputer that loaded its programs from cassette tape. The machine was the Nascom, and its operating system, NasSys, lived on those tapes. He called the compiler Blue Label Pascal.
Whatever Hejlsberg wrote had to be compact, because every byte the compiler took was a byte the user's program could not have.
Nor did the company behind it. Hejlsberg's firm, Poly Data, was small and based in Denmark, a long way from the American software houses that sold Pascal for hundreds of dollars.
The code did not stay on the Nascom. Hejlsberg's work moved to CP/M, the operating system that many small business computers of the time ran, and it came out as Compas Pascal. That version was already on the market before November 20, 1983, the day Turbo Pascal was released. Users who tried it noticed one thing first. The compiler turned source code into a running program remarkably fast.

Philippe Kahn noticed too. At Borland he did not buy Hejlsberg's product outright. He licensed the compiler core and set about building the rest around it: a user interface and an editor that Hejlsberg's code did not have.
What was it?
Kahn bets on tools that cost hundreds
Philippe Kahn ran a company that was barely formed, and he spent his time watching what programmers did all day. He looked past games and business software and saw an opening for Borland in the tools programmers used to build them.
Kahn watched the same loop turn again and again. A programmer typed source code in an editor, then ran a compiler to turn it into object code, the half-finished machine instructions that cannot run yet. Often the compiler needed several passes over the source to do it. Then a linker stitched the pieces into a program, and the programmer went back to the editor to start over.
Kahn saw how much that loop could cost when he looked at Microsoft Pascal. It made two passes with the compiler and a third with the linker, and on a machine with only floppy drives that could take minutes.
Then Kahn counted what the waiting cost. The basic professional tools ran to hundreds of dollars, and ancillary tools such as profilers, which show where a program spends its time, added more. Some vendors reached further into programmers' pockets. George Blank says UCSD Pascal demanded exorbitant fees from programmers who sold programs written with it.
So Kahn decided to build something different: one integrated toolkit, with far better performance and much leaner use of the computer's resources than the usual professional tools. It had to be faster than Microsoft's, cheaper than anything on the shelf, and free of strings on what programmers sold. A floppy-based machine had only so much memory to give, and every feature Kahn wanted would have to share it. How small could Hejlsberg make the whole thing?
The whole system fits in RAM
Hejlsberg chose assembly language, the raw instruction set of the processor itself, and built a compiler that read a program only once. It moved through the source from top to bottom and produced its output as it went, with no second or third trip. Instead of shuttling work back and forth to the floppy drives, it kept everything in RAM.
The squeeze worked. TURBO.COM, the file that held the whole environment, with its editor, compiler and a system for running programs straight from memory, came to 33,280 bytes. Dave Garland of Popular Computing counted a little more once the pieces were running, and said Turbo Pascal packed editor, compiler, linker and runtime library into 39K bytes of RAM.
The people who tried it noticed the speed in their own programs first. UCSD Pascal compiled to p-code, an intermediate language that a program then interpreted while it ran, so every instruction passed through a middleman. Developers who had known only interpreted BASIC or UCSD Pascal watched their finished programs run at a pace they had not expected, and many of them called it a revelation.
The editing loop changed too. When the compiler hit an error, it found the offending line and dropped the programmer into the editor at that spot, ready to fix it. No disks churned in between, and no hunt through a listing was needed.
Kahn and Hejlsberg paid for the speed with a ceiling. A program could hold at most 64K of code and 64K of data. For most programmers of the day, that was a fair trade. The name Turbo, which Kahn chose, pointed at both the speed of compiling and the speed of the programs that came out.
Now Kahn had to get it to the people who needed it. How would he sell it?
IBM wants $200; Kahn sells by mail
Kahn went to the biggest name in personal computers first. He told Pournelle he had tried to get IBM to market Turbo Pascal, and Pournelle printed the story in July 1984.
IBM's answer came with a floor under it. According to Kahn, the company would not resell the program unless the price was at least $200. That number sat awkwardly next to everything Hejlsberg had squeezed into those few kilobytes. A product built to be cheap and fast would have to wear a price tag built for the big professional tools. Kahn declined.
Instead he cut out every middleman. No retailer would stock Turbo Pascal, no reseller would take a cut, and no one but Borland would decide what it cost. Kahn settled on mail order, straight from Borland to the customer, at $49.95. Then he put the terms into the ad in plain words, so a reader with a checkbook and a pen would never have to guess. The price was followed by a modest shipping charge. Buyers in California would add their state sales tax, and anyone ordering from outside the US would pay $15 more.
Then Kahn had to put the ad where programmers would see it. It ran in Byte magazine, which the very people who wrote code read. It also ran on the back cover of the Sidekick 1.0 manual, so every buyer of Borland's other product held it in their hands. The copy leaned on a piece of news that gave the language weight. The Educational Testing Service had decided to make Pascal the language for advanced placement exams, and the ad pointed straight at that decision.
A compiler would travel in an envelope to people who had never held the disk, and no shop clerk would vouch for it. Would a stranger send $49.95 to a company he had never dealt with, for a tool that cost a fraction of the rest?
A box that trusted its buyers
A buyer who tore open the package found a single floppy disk. Ten files sat on it, filling 131,297 bytes. Kahn had left off the lock that other software makers put on their disks, so nothing in Turbo Pascal stopped anyone from copying it.
In place of a lock, Borland printed a promise. The Book License asked buyers to treat the software like a book: many people could use it, but not at two places at once. A reader could pass the disk around the way he would pass a novel, and the license trusted him to read it in only one chair at a time.
The manual carried the other half of that bargain. It ran to 250 pages and came perfect-bound, with a spine like a paperback's. Borland's own later account says the manual was the product, which tells you how Kahn thought of the disk.
Kahn also put something on the disk for programmers to chew on. MicroCalc, a working spreadsheet, came as source code, the full text of the program in Pascal. A buyer could load it, read it line by line and see how a real application was put together. Kahn had written that example himself.
One more charge disappeared. Other Pascal tools asked programmers for a $100 license fee before they could sell what they had written. Borland dropped that fee, so a programmer who built something with Turbo Pascal could sell it without sending Kahn a cent.
Had that trust paid off?
400,000 copies in a market of 30,000
Bruce Webster of Byte sat down with his tally and worked the sum through. By his count, Borland had sold about a quarter of a million copies of Turbo Pascal in a couple of years. Half a year later he would have had to redo it, because the figure was reportedly past 400,000. Analysts had sized the whole market at only 30,000 potential buyers. Kahn's mail-order customers had outrun that imagined market many times over.
The reviewers who tried the disk found no reason to hold back. Jeff Duntemann of PC Magazine called it the language deal of the century. Pournelle went further and judged Turbo Pascal as good as any Pascal compiler for a microcomputer, whatever that compiler cost.
Then the price went up, to $69.95, and the praise did not fade. Webster said that even at that figure Turbo Pascal was probably still the best software deal around. Now they were being asked to pay more, and they kept sending the envelopes.
The news traveled up the coast to the rival camp. Scott MacGregor recalled Gates yelling at Greg Whitten for half an hour over Microsoft's slower products. In MacGregor's telling, Microsoft simply could not defeat Kahn's small startup.
The compiler under all of it had come from a young Danish programmer, so what did Hejlsberg do next?
From a $49.95 disk to a free download
Hejlsberg did not stay a supplier for long. He joined Borland as an employee, and from then on every version of the Turbo Pascal compiler grew from his design.
Then the line itself changed. Delphi 1 arrived on February 14, 1995, and Hejlsberg again served as architect, as he would for the first three Delphi versions. Borland retired Turbo and Borland Pascal in its favor. The old series went out with a record behind it: it has been called one of the best-selling compiler series of all time, built on a disk that began as a $49.95 offer in a mail-order ad.
Borland did not leave the old disks to gather dust. It later released three of the early versions free of charge: 1.0, 3.02 and 5.5. The first release, the one that squeezed a compiler, an editor and a runtime into a few dozen kilobytes, is now something anyone can simply download.
Think back to George Blank, who once sat through the grinding of floppy disks while a small program crawled toward its result. Now the same tiny compiler can be had for nothing, and it still answers almost before the finger leaves the key. That speed, the price Kahn refused to raise to $200, and a box that trusted its buyers with a promise instead of a lock were the whole secret. A Danish programmer's compiler had finished its own long compile and come out the far side as a free file in a download folder.
Cover: Lenharth Systems · CC0 · StockSnap. Layout and headline text by Signal Titans. Logo: Borland, via Wikimedia Commons (Public domain).
Source: How Anders Hejlsberg Wrote Turbo Pascal in 1983 and Upended Microcomputer Software · Byte Magazine Volume 09 Number 02 – Benchmarks : Free Download, Borrow, and Streaming : Internet Archive · Delphi History – from Pascal to Borland Developer Studio 2006 · Turbo Pascal version 1.0 – The Turbo Pascal release dates – Community Blogs – Embarcadero Community · Antique Software: Turbo Pascal v1.0 · Antique Software: Turbo Pascal v3.02 · THE WEST COAST FAIRE · Turbo Pascal; the best cost less. · Borland revives ‘Turbo’ for developer tools | InfoWorld

Leave a Reply