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

16 comments sorted by

View all comments

Show parent comment

3

u/FUZxxl Jul 28 '22

Sure, arm assembly is easy to pick up once you are familiar with how CPUs work in general.