A program that converts source code instructions in high-level programming language to object codes line…