0

How is a compiler made?I mean what language is needed?

11th Jul 2019, 4:53 PM
Fatemeh
Fatemeh - avatar
6 Answers
+ 1
A compiler just translates the language to machine code, and can be written in any language.
11th Jul 2019, 4:54 PM
Vlad Serbu
Vlad Serbu - avatar
+ 1
What do you mean?
11th Jul 2019, 6:13 PM
Vlad Serbu
Vlad Serbu - avatar
+ 1
If you want to write a compiler, you should learn assembly. Machine language is the format your CPU processes, and assembly is machine language written in human-readable form. A compiler takes takes the the source files and translates them to assembly, and then to machine language. As for how this process happens, there are many books on the subject, the clasic one being "Compilers: Principles, Techniques, and Tools".
12th Jul 2019, 3:57 PM
Vlad Serbu
Vlad Serbu - avatar
0
thanks🙇 but why do some compilers are more useful?
11th Jul 2019, 4:57 PM
Fatemeh
Fatemeh - avatar
0
I mean how can some one create a compiler ?does it need a special language to know?
12th Jul 2019, 7:16 AM
Fatemeh
Fatemeh - avatar
0
Wow the first pages of book were so lovely 🙃🙃and fun thanks again🙂🙂â˜ș
12th Jul 2019, 4:39 PM
Fatemeh
Fatemeh - avatar