![]() |
![]() |
![]() |
![]() |
![]() |
|
With the header files properly included, you can use the C compiler to
compile each source-code file
separately, producing object code. The
object-code files, by convention, have o extensions:
main.c trades.c
*--------------* *--------------*
| main | | Function |
| definition | | definitions |
| | | |
*--------------* *--------------*
| |
v v
main.o trades.o
*--------------* *--------------*
| Compiled | | Compiled |
| main | | function |
| definition | | definitions |
*--------------* *--------------*
Most of the work required to translate source code into an executable program lies in producing object files. Fortunately, when you make changes in a big, multiple-file program, you need to recompile only the altered files; you leave unaltered files alone.