Chapter 4: BDS C¶
The BD Software C Compiler is a compiler for a sizable subset of the C programming language written in 1979 by 20 year old Leor Zolman for the CP/M operating system.
Hello World!¶
The file on Disk B named COPYC.SUB contains the following:
PIP $1:=B:CC.COM
PIP $1:=B:CC2.COM
PIP $1:=B:CLINK.COM
PIP $1:=B:C.CCC
PIP $1:=B:DEFF.CRL
PIP $1:=B:DEFF2.CRL
PIP $1:=B:STDIO.H
This is a SUBMIT file that copies the seven files we need to compile C program to a disk drive of our choice. To copy them to Disk C, run the following command:
A>SUBMIT B:COPYC C
Change to Disk C and confirm that the files are there:
A>c:
C>dir
C: CC COM : CC2 COM : CLINK COM : C CCC
C: DEFF CRL : DEFF2 CRL : STDIO H
C>
Now let’s write our first C program, the famous Hello World.
#include <stdio.h>
main() {
printf("Hello World!\n");
}
Glossary¶
- C programming language¶
a general-purpose programming language created in the 1970s by Dennis Ritchie.