Slide 1Compiler Construction Sohail Aslam Lecture 42 Slide 2 2 Code Generation The code generation problem is the task of mapping intermediate code to machine code. Slide…