Extracting the abstract syntax tree from GCC
1–10 of 112 posts
Re: Extracting the abstract syntax tree from GCC
#2Re: Extracting the abstract syntax tree from GCC
#3https://github.com/bedatadriven/renjin/blob/master/tools/gcc...
This little plugin simply dumps GCC's gimple to JSON, yielding for example:
https://github.com/bedatadriven/renjin/blob/master/tools/gcc...
LLVM's design looks very attractive, but for scientific computing Fortran is really important, and AFAICT, LLVM doesn't have an intermediate representation comparable to Gimple: LLIR seems to be at the level of the registers rather than the nice abstract Gimple, but perhaps I just haven't looked deep enough.
Re: Extracting the abstract syntax tree from GCC
#4That's a bit saddening.
Re: Extracting the abstract syntax tree from GCC
#5Re: Extracting the abstract syntax tree from GCC
#6I'm someone who has experience with what can be done in terms of extending/modifying software even without any source code, so my perspective on things like this are more like... "you have the source and an explicit license to modify it, and no intention of keeping your changes proprietary, so just do it!"
Either that or move to clang/LLVM, which I think would be better in the long term.
Re: Extracting the abstract syntax tree from GCC
#7Re: Extracting the abstract syntax tree from GCC
#8comparing emacs to xcode/idea made me lol
Why did it? Emacs is a great development environment. It allows you to focus on the code and supports debugging right next to your code, same as an ide. It is an ide.
Emacs lacks some features of xcode/eclipse et al but in exchange it has power they lack. Why shouldn't it gain some of their features?
(I am assuming you loled because you considered emacs weaker. My apologies if I got the sense backwards).
Re: Extracting the abstract syntax tree from GCC
#9 "misuse of GCC front ends"
While Stallman's intent is the opposite, this is sounds awfully like the kind of thinking of big companies that are so easy to hate, where one can "misuse" a binary by reverse-engineering it.