News for hackers. Stuff that matters.
Re:A deeper look into the GCC Rust front-end by philberty on Thursday October 13, 2022 @10:59AM (#33191928)
Thanks @steveklabnik we basically have the same in gccrs:

1. AST 2. HIR 3. THIR (side-table lookups) 4. GCC Generic

We basically skip MIR in gccrs.

Its pretty sensible to have other IR's, we have many passes in gccrs simplifying things so the graph of what your working with is simpler and simpler each time.

I mean in GCC for C++ for example they use GENERIC and add a bunch of custom tree-codes such as LAMBDA_EXPR or TEMPLATE stuff for example then they keep substituting etc and finally as part of handing off to GCC middle-end it triggers the gimplification of all of these custom tree codes. So even the C++ front-end you could argue has two IR's.

Re:A deeper look into the GCC Rust front-end by steveklabnik on Thursday October 13, 2022 @12:29PM (#33193237)
Good to know, thanks! I’m excited to see gcc-Rama develop, I just haven’t had time to learn how any of it works. Keep up the good work!
Re:A deeper look into the GCC Rust front-end by steveklabnik on Friday October 14, 2022 @03:28PM (#33207815)
...gcc-rs. thanks autocorrect.