The code generator translates the optimized intermediate code into machine code specific to the target machine architecture. This machine code can be directly executed by the computer's hardware.