0

My question is, How does a compiler converts the source code, its just a software. Is there a role of any hardware or CPU to help compiler to do its job? Thanks.

1 Answers1

0

Like other software compilers need a CPU to run on. However, I haven't heard of any CPUs with any compiler specific support. For example, gcc is just another C++ (was C prior to 2012) program. It can compile and run itself just like any other C++ program, and the CPU runs it just like any other piece of code.

gmatht
  • 835
  • 6
  • 14