473,785 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any good static analysis tools out there?

This isn't exactly a language question, but I'm curious if any
of the veteran programmers out there could recommend a static
analysis tool for C++. Specifically, I'm looking for something
that can flag unreachable code, possible security errors like
buffer overflows, and identify unused entities. It would also
be great if said tool could identify any headers included un-
necessarily, and perhaps compute some basic metrics. Are there
any tools like this out there for C++? I'm mostly interested
in something that runs on Win32 and Solaris, but I'll entertain
other platforms as well.
Jul 23 '05 #1
2 1840
Hi Derek,

purecoverage and purify from IBM (formerly Rational before "Big Blue"
bought 'em) are probably what you want. I also know of a tool from a
company called "Headway software" that does C++ analysis of your
code, check them out at www.headwaysoftware.com

I have a few "hardened" C++ colleagues that have used the headway
analysis tool and spoke very highly of it. headway tout;

"Rapid Reverse Engineering and Static Analysis of your "as-is" design
for Java, C, C++ or Ada Software"
Either one of those two should provide you with the functionality you
need.

Cheers

Graham

Derek <us**@nospam.or g> wrote in message news:<38******* ******@individu al.net>...
This isn't exactly a language question, but I'm curious if any
of the veteran programmers out there could recommend a static
analysis tool for C++. Specifically, I'm looking for something
that can flag unreachable code, possible security errors like
buffer overflows, and identify unused entities. It would also
be great if said tool could identify any headers included un-
necessarily, and perhaps compute some basic metrics. Are there
any tools like this out there for C++? I'm mostly interested
in something that runs on Win32 and Solaris, but I'll entertain
other platforms as well.

Jul 23 '05 #2
grahamo wrote:
Hi Derek,

purecoverage and purify from IBM (formerly Rational before "Big Blue"
bought 'em) are probably what you want


Not if you want static analysis (which is what he asked for). Purify
is about as far from static as you can get. It bashes your code (in
the windows case) at runtime. It provides absolutely ZERO static
analysis. "lint" is an example of a very old static analyser.

Some of the competing products do some static analysis in addition
to runtime work. However, almost everyone I've found (at least on
windows) have significant problems.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2259
by: beliavsky | last post by:
If I run PyChecker on the following program, stored in xtry.py, m = 10000000 k = 0 for i in xrange(m): k = k + i print k x = range(3) print x
9
2237
by: Carlos | last post by:
I'm responsible for the content in a call center's intranet site. There are approximately 600 pages on 7 sub-webs. I have access to the sub-webs, but I don't have access to the root web or web server log. My manager wants hit counters on all pages to determine which pages are used and which ones aren't. I know hit counters are not accurate tools for this purpose, but I would like further information/ammunition. I know about...
1
1866
by: Jens Nordahl | last post by:
On a large scale C++ project we are considering to make a static code analysis tool capable of giving answers to high level questions like (examples): - Which entry points on this layer in the software can result in calls to a given function on a lower layer - Which tables in a database can be updated by executing from a given entry point in a given layer
1
2441
by: vipindeep | last post by:
Dear reader, Are there any widely used dynamic analysis tools which are used for detecting errors in programming, for example null dereferences, deadlocks, etc.. Some of the tools which I could know are Daikon, *J, MAc JAVA, Delta Debuggers. Infact all these tools provide runtime information. Are there any tools like Purify (in C for memory based errors, array out of bounds etc).
5
1650
by: Carlos | last post by:
Hi folks, Can somebody send me references on the subject mentioned tool, both open source and or commercial is fine. Please cc to carlos@istamina.com.ar
14
1473
by: Protoman | last post by:
Is this a good use of fn ptrs? #include <iostream> #include <cstdlib> using namespace std; typedef void (*v_v_fptr)(); void Error(){cout << "Error" << endl;}
44
2866
by: John A. Bailo | last post by:
Dr. Dobbs has a /glowing/ article on Ruby on Rails this month. What do you guys think? Can it replace .net, php and java? And be the Open Source OOP web solution that is not bound to Sun or MS? http://media.rubyonrails.org/presentations/pursuitofbeauty.pdf
6
2204
by: dspfun | last post by:
I would like to analyze my running c-program. What I would like to know for example is the range of the entire address space of my running c-program (memory reserved for/by the running program), starting address and sizes of text (code), stack, heap, bss, constant data, linked in libraries, etc. What are some good ways to extract this kind of information? What (free) tools are the most common ones for displaying this kind of
20
1584
by: Nikhil Bokare | last post by:
Can anyone suggest me a good, small, easy to use compiler which follows ANSI C standards? I use TurboC for the sole reason that I am quite used to it. It does not follow some of the ANSI C standards.
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.