How does the compiler identify its hardware to the host machine? Which component?
1 answer
Usually the compiler is divided into two parts: the interface, which performs the parsing, and which generates intermediate code. Then a backend that takes intermediate code and generates assembly or machine code.
The frontend can be generic, but the backend is built for a specific purpose. Thus, the compiler does not have to "identify" the host, only the target.
Please note that host and target can be different systems that cross-compile .
+7
source to share