• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C++ Dead Code tool

Does anyone know of a good (and cheap hopefully) tool for C/C++ that can find dead code? I found one so far that costs $990:
Project Analyzer v8 Enterprise Edition

I quickly looked for an open source project (free) with no luck. I'm kinda surprised that C++ for Eclipse doesn't seem to have a tool.

This is for work, so it doesn't have to be free. I'm shooting for something in the sub $300 range.
 
Originally posted by: IHateMyJob2004
Does anyone know of a good (and cheap hopefully) tool for C/C++ that can find dead code? I found one so far that costs $990:
Project Analyzer v8 Enterprise Edition

I quickly looked for an open source project (free) with no luck. I'm kinda surprised that C++ for Eclipse doesn't seem to have a tool.

This is for work, so it doesn't have to be free. I'm shooting for something in the sub $300 range.

If you're trying to reduce filesize or visual code bloat, then go right ahead...but any compiler -- even something like gcc -- will never actually run that code so you're not likely to see speed increases.

 
Certain compilers will identify code that is unreachable.

A path analyer will have to check to see if other code is never called.
 
I vote to tell your jackass coworker to screw off 😛.

If he thinks your code sucks so much he should be writing it himself!

That being said, PC-Lint is nice as already mentioned 🙂
 
Originally posted by: scootermaster
Originally posted by: IHateMyJob2004
Does anyone know of a good (and cheap hopefully) tool for C/C++ that can find dead code? I found one so far that costs $990:
Project Analyzer v8 Enterprise Edition

I quickly looked for an open source project (free) with no luck. I'm kinda surprised that C++ for Eclipse doesn't seem to have a tool.

This is for work, so it doesn't have to be free. I'm shooting for something in the sub $300 range.

If you're trying to reduce filesize or visual code bloat, then go right ahead...but any compiler -- even something like gcc -- will never actually run that code so you're not likely to see speed increases.

Don't talk logically. I am the not the lead on the project. it is for defense work though, and per most defense contracts want no dead code. Not the the buyer would ever know it.

I think it is something worth correcting if found, but to go ut and search for this problem is simply stupid.
 
Back
Top