64 points · by samuell · 7y ago · 29 comments
Correct me if I'm wrong, but from the README [1], the answer appears to be:
> The dragonegg plugin works with gcc 4.5, 4.6, 4.7 or 4.8
But a little more digging reveals that there are patches so[2]
> DragonEgg works for for GCC v8.x
Lack of Google-fu or am I missing something? If they believed dragonegg is flawed, why not just lay it out? I prefer that over a goose chase that doesn't fully check out.
[1] http://llvm.org/svn/llvm-project/dragonegg/trunk/README
[2] https://lists.llvm.org/pipermail/llvm-dev/2017-August/116705...
Essentially, Dragonegg was only ever a last-resort way to get LLVM IR. If you're trying to build a LLVM backend, you might as well emit LLVM IR directly from your frontend rather than trying to deal with a GIMPLE backend and then a GIMPLE-to-LLVM converter.
1) Clean-up of backend interface code to make it more robust and less GCC-specific
2) Allow for GNAT to target more platforms such as modern Apple devices (where GCC support is waning and LLVM is preferred) and WebAssembly
Right now they are stating that it is not production-ready, but I would not be surprised if the LLVM-based GNAT gains peer status with the GCC-based GNAT or even overtakes it.