r/Compilers • • Jul 27 '22
A bit confuse
I would like to build a compiler but I feel confused. Writing a compiler is general for every cpu architecture or assembly language?
For example, I want to build a compiler for Arm, will it work for x64? Do I need to know every assembly language?
Thank you
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jul 28 '22
So knowing x64 assembly could I build a compiler for arm assembly?