Do I need a compiler to create a compiler? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Do I need a compiler to create a compiler?

Sometimes, I wonder how a compiler like Codeblocks is made?

11th May 2017, 3:33 PM
Talha Bin Tareque
Talha Bin Tareque - avatar
2 Answers
+ 3
Assembly is the first language to build a compiler as assembly can interact with hardware. then the compiler build from assembly is used to build another compiler and the series is going on(loop) source : Wikipedia
11th May 2017, 3:48 PM
MR Programmer
MR Programmer - avatar
+ 1
yes definitely you need to have some program components for transformation higher prog. language into mashine native code.This is compiler.You can have indirect compiling into middle code like assembler and than compile again into mashine native code.If you have interpreted code you do not have any compiler.
11th May 2017, 3:45 PM
Highman
Highman - avatar