Code Generator Produces the target language in a specific architecture. The target program is normally a re-locatable object file containing the machine codes. ·Ex: assume that we have an architecture with instructions whose at least one of its operands is a machine register) MOVE id2,R1 MULT id3,R1 ADD #1,R1 MOVE R1,id1 CS308 Compiler Theory 13Code Generator • Produces the target language in a specific architecture. • The target program is normally a re-locatable object file containing the machine codes. • Ex: ( assume that we have an architecture with instructions whose at least one of its operands is a machine register) MOVE id2,R1 MULT id3,R1 ADD #1,R1 MOVE R1,id1 CS308 Compiler Theory 13