The front-end module of a compiler includes the analysis phases (lexical analysis, syntax analysis, and semantic analysis), while the back-end module includes the synthesis phases (intermediate code generation, code optimization, and code generation).