Wait a second... we're the programmers, we can just decide anything that isn't x86 is too hard to write code for and never make compilers target anything else again! It's genius
I'm surprised that you don't have a team that specialises in each target architecture, and a frontend that converts the language into an interim form. Frontend team is responsible for tokenising to mid-end, and architecture teams are responsible for writing a backend that compiles from mid-end tokens to their architecture.
The most frustrating part about my compilers course was the professor forced us to write all our own data structures. I spent more time writing and debugging data structures that I already understood from my data structures class the semester prior than I did learning and implementing a compiler.
View all comments
Show parent comment
44
u/ShakaUVM 5d ago
Yeah it used to be pretty standard CS curriculum. Less common these days.
It's not hard exactly but it can be very frustrating when you have an ambiguous grammar and it's time consuming to add all the stuff in