A compiler which runs on one machine and generates a code for another machine-
A compiler for a high-level language that runs on one machine and produces code for a different machine is called a cross-compiler.
compiler:- A compiler is computer software that transforms computer code written in one programming language (the source language) into another programming language.