BDS C


BDS C is a compiler for a sizeable subset of the C programming language, that ran on and generated code for the Intel 8080 and Zilog Z80 processors. It was the first C compiler for CP/M. It was written by Leor Zolman and first released in 1979 when he was 20 years old. "BDS" stands for "Brain Damage Software."
BDS C was popular and influential among CP/M users and developers in the 8-bit microcomputer era. It ran much faster and was more convenient to use than other Z80-hosted compilers of the time. It was possible to run BDS C on single-floppy machines with as little as 30K of RAM in comparison to most other commercial compilers which required many passes and the writing of intermediate files to disk. Around 75,000 copies were sold, including a stripped down Japanese incarnation.
A number of important commercial CP/M products were written in the BDS C subset of the C language, including PeachText from PeachTree Software, MINCE and Scribble from Mark of the Unicorn, and most of the software in the Perfect Software suite including Perfect Writer, PerfectCalc, PerfectSpeller and PerfectFiler.
Weak points of BDS C were that the floating point math routines and the file access functions were incompatible with the Unix C compiler's and its relocatable object files were not compatible with the Microsoft assembler, making it more difficult to integrate C code with assembly language.
BDS C was bundled with a subset of the Unix system written in about 1980, called MARC. This effort in some ways resembled GNU, though MARC was to be able to run CP/M software through emulation. Unfortunately MARC's author, Ed Ziemba, perished in a snorkeling accident before he could complete the project.
In 2002, Leor Zolman released the 8080 assembly language source code for BDS C into the public domain.