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.
Asked
Active
Viewed 55 times
1 Answers
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
-
Thanks, Just wanted to know how a compiler can do parsing with out the help of hardware – Geetha Jun 08 '20 at 01:50