(no title)
stevefan1999 | 21 days ago
Generally after the SSA pass, you convert all of them into register transfer language (RTL) and then do register allocation pass. And for GCC's case it is even more extreme -- You have GIMPLE in the middle that does more aggressive optimization, similar to rustc's MIR. CCC doesn't have all that, and for register allocation you can try to do simple linear scan just as the usual JIT compiler would do though (and from my understanding, something CCC should do at a simple cost), but most of the "hard part" of compiler today is actually optimization -- frontend is mostly a solved problem if you accept some hacks, unlike me who is still looking for an elegant academic solution to the typedef problem.
adgjlsfhk1|21 days ago
hackyhacky|21 days ago
nxobject|21 days ago
I don't know off the top of my head whether there's a parser framework that makes this parse "straightforward" to express.
wahern|21 days ago