Professional Documents
Culture Documents
Cprogram
Cprogram
steps:
1. create source code with text editor (vi, pico)
- best to use the suffix .c to indicate that it is a C program
- then compiler looks for this kind of program
2. to compile, cc programname.c
cc programname.c -o new_file_name
e.g.
cc addition.c -o add
UNIX can let you compile modules separately and then load as one
program
- lets you debug and reuse modules
targetList:dependencyList
commandList
- to force the make process, can update the last modified times to the
present with
touch -c {fileName}