Live data from Hacker News

Which compiler to use for implementing code optimization ideas

news.ycombinator.com

1–6 of 6 posts

Which compiler to use for implementing code optimization ideas

#1
Hi guys,

I am currently in grad school and had some code optimization ideas and wonder which compiler I should use to implement them. My first approach with modifying GCC was kind of discouraching as I found the source to be super complex and hard to modify. Can you share your mind?

Re: Which compiler to use for implementing code optimization ideas

#2
Do not waste any time with gcc - go get LLVM and start hacking. It is a clear, clean, well-designed architecture with a lot of optimization passes already implemented, and there's a complete C front-end (called Clang) which either already does or is soon going to support C++ as well.

Re: Which compiler to use for implementing code optimization ideas

#4

Do not waste any time with gcc - go get LLVM and start hacking. It is a clear, clean, well-designed architecture with a lot of optimization passes already implemented, and there's a complete C front-end (called Clang) which either already does or is soon going to support C++ as well.

Clang's C++ support is considered to be production quality as of 2.8.