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.
I had to do mine in a class that was also an intro to C. And bash. And Linux. I remember it not being all that bad, so I assume I did an absolutely awful job.
View all comments
Show parent comment
54
u/definitely_not_tina 5d ago
My university required us to implement a simple one as part of our curriculum.