According to this answer : https://stackoverflow.com/a/6264256/1870760 compilation is done in three steps:
- preprocessing
- compilation
- linking
Now let's say I have a project in Visual Studio with multiple source files and I start building the entire project, how is this processed?
Is it:
- Preprocess source file #1
- Compile source file #1
- Preprocess source file #2
- Compile source file #2
etc.. and finally..
- Link all object files
Or rather:
- Preprocess every source file
- Compile every source file
- Link all object files
Or something completely different? Is this compiler specific or is there some general rule?