CITS2002 Systems Programming |
← prev | next → | CITS2002 | CITS2002 schedule | |||
Compiling and linking our C programsC programs are human-readable text files, that we term source-code files. This makes them very easy to copy, read, and edit on different computers and different operating systems.C is often described as being portable at the source-code level. Before we can run (execute) our C programs, we must translate, or compile, their source-code files to files that the operating system can better manage. A program known as a compiler translates (compiles) source-code files into object-code files. Finally, we translate or link one or more object-code files to produce an executable program, often termed a 'binary', an 'executable', or an 'exe' file. A program known as a linker performs this translation, also linking our object-code file(s) with standard libraries and (optionally) 3rd-party libraries. In reality the compiler is 'silently' executing the linker program for us, and then removing any unwanted object-files.
CITS2002 Systems Programming, Lecture 2, p3, 24th July 2024.
|