Currently, the compiler is always built in its entirety. The make command builds all the implemented stages, and no compiler macros are used to turn sections of the code on or off.
There is added value in building the compiler selectively. For example, compiling only up to the syntax analysis stage and turning off the subsequent stages of semantic analysis and machine code generation.
This process can be refined further to create separate binaries for each stage. For instance, invoking the command make lex could generate a binary that solely performs lexical analysis.
Currently, the compiler is always built in its entirety. The
makecommand builds all the implemented stages, and no compiler macros are used to turn sections of the code on or off.There is added value in building the compiler selectively. For example, compiling only up to the syntax analysis stage and turning off the subsequent stages of semantic analysis and machine code generation.
This process can be refined further to create separate binaries for each stage. For instance, invoking the command
make lexcould generate a binary that solely performs lexical analysis.