LWN.net Logo

LCA: Static analysis with GCC plugins

LCA: Static analysis with GCC plugins

Posted Jan 23, 2010 12:03 UTC (Sat) by ahornby (subscriber, #3366)
Parent article: LCA: Static analysis with GCC plugins

"Unlike eclipse it scales to a mozilla-size code base"

I can't comment on eclipse's c++ or javascript modes, but the java side definitely scales to large projects. I use it on 3-4 million line code bases regularly. The static analysis is amazing, and people use it all the time to find type hierarchies etc - its right there in the IDE when you right click on a type.

An amazing tool. I used to use xemacs with all the customization, speedbar, tags etc (even wrote some modes for in house languages). Eclipse blows that away. Also massively better than vs.net - visual studio still doesn't have the static analysis or compile as you type abilities of eclipse.

Having this stuff inside your dev environment is worth its weight in gold.


(Log in to post comments)

LCA: Static analysis with GCC plugins

Posted Jan 23, 2010 14:38 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link]

" Also massively better than vs.net - visual studio still doesn't have the
static analysis or compile as you type abilities of eclipse."

VisualStudio 2010 has an online C++ error checker, it uses EDG front-end
internally to check for errors. And it also has static analysis for C++.

LCA: Static analysis with GCC plugins

Posted Jan 24, 2010 13:10 UTC (Sun) by marcH (subscriber, #57642) [Link]

> An amazing tool. I used to use xemacs with all the customization, speedbar, tags etc (even wrote some modes for in house languages). Eclipse blows that away.

Eclipse has a full-featured Java compiler (JDT Core, originated in IBM VisualAge, a Smalltalk-based IDE). Everything the main article says about GCC plugins, Eclipse already has it for Java.

Programming languages are complicated. You cannot really afford to duplicate the parser in every tool. Even when you are a LISP wizard. So compiler plugins are the way to go.

> Having this stuff inside your dev environment is worth its weight in gold.

Agreed 200%

Plus refactoring

Posted Feb 3, 2010 23:33 UTC (Wed) by man_ls (subscriber, #15091) [Link]

Refactoring is a joy to work with in Eclipse. Move methods around, abstract a behavior, implement a subclass... Most Java code would be really rigid without this, but with Eclipse it turns into soft clay.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds