Possibly slightly confusing:
- Your preprocessor which may be integrated into the compiler, needs a path to the header files
- Your linker needs a path to the libraries
- Preprocess which expands all macros in your source files and writes the headers into the files. The output of this stage is still in C. The header files are effectively promises that functions called in any file but not coded there will be found by the linker
- Compile which turns the C into Assembler mnemonic codes
- Assemble which turns the Assembler into object modules corresponding to your C source files. These have unresolved references to functions in your other source files and in the llibraries
- Link which produces the executable file after resolving the unresolved references to functions in other object modules and libraries and importing the object code for library functions.
Statistics: Posted by VinceL — Mon Apr 01, 2024 9:23 pm