What are the four major stages of compilation in programming?

This actually varies based upon the language as some have less than 4 or more than 4. However I believe you're looking for:

-Preprocessor

-Compile

-Assembler

-Linker