C Programming Language


History

-SOAP- instructions adjacent to drum- optimizes reading

FORTRAN- formula translator

-first language, 1955, IBM, USA

-ALGOL 60- european eq. Of FORTRAN

-FORTRAN is pushed by IBM, dominates over ALGOL

-BCPL similar to ALGOL in Europe

-B


C

-close to the machine

-program consists of files which consist of functions

- .c extension = c file


C compiler

-a.c -> compiler --> a.s --> assembler --> a.o -->loader ---> a.exe

commands:

gcc -S x.c ---> x.s

gcc -c x.s ---> x.o

gcc x.c --> x.exe

adding -g at every steps puts debugging info into the file as its being created


gdb debugging tool