473,698 Members | 2,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C code stats tool?

Are there any free C code analysis tools available?

/Why Tea

Nov 16 '06 #1
24 2256
Why Tea wrote:
Are there any free C code analysis tools available?

/Why Tea
Well, there's Splint:
http://lclint.cs.virginia.edu/
Nov 16 '06 #2

james of tucson wrote:
Why Tea wrote:
Are there any free C code analysis tools available?

/Why Tea
I didn't mean lint type of tool, sorry. What I meant was a tool that
provided statistics of a code base (might not even compile) so that the
quality of the code could be judged. I used to see a simple tool that
gave total LOC, number of goto's used, number of comments, etc...

/Why Tea

Nov 17 '06 #3
Why Tea a écrit :
james of tucson wrote:
>>Why Tea wrote:
>>>Are there any free C code analysis tools available?

/Why Tea


I didn't mean lint type of tool, sorry. What I meant was a tool that
provided statistics of a code base (might not even compile) so that the
quality of the code could be judged. I used to see a simple tool that
gave total LOC, number of goto's used, number of comments, etc...

/Why Tea
The IDE of lcc-win32 gives you Halstead statistics (software metrics)
lines of code, etc.

http://www.cs.virginia.edu/~lcc-win32
Nov 17 '06 #4
>
The IDE of lcc-win32 gives you Halstead statistics (software metrics)
lines of code, etc.
That looks like a terrific software, will try it out. However, I was
after more of a command line type of software metrics tool to get the
stats and a feel of the quality of the tens of thousands of lines of C
code inherited.

Nov 17 '06 #5
Why Tea said:
However, I was
after more of a command line type of software metrics tool to get the
stats and a feel of the quality of the tens of thousands of lines of C
code inherited.
The quality will be appalling. It almost always is, you know. :-(

The best metrics software I've seen is McCabe's, but it costs a small
fortune. It's worth every penny, *if* you need high quality metrics badly
enough.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
Nov 17 '06 #6
Richard Heathfield a écrit :
Why Tea said:

>>However, I was
after more of a command line type of software metrics tool to get the
stats and a feel of the quality of the tens of thousands of lines of C
code inherited.


The quality will be appalling. It almost always is, you know. :-(
You are speaking without knowing what are you talking about.
You do not use my software, how can you say that
"the quality will be appalling"???

Because you like to spread your prejudices as if they were
worth something .

jacob
Nov 17 '06 #7
In article <45************ **********@news .orange.fr>,
jacob navia <ja***@jacob.re mcomp.frwrote:
>Richard Heathfield a écrit :
>Why Tea said:
>>>However, I was
after more of a command line type of software metrics tool to get the
stats and a feel of the quality of the tens of thousands of lines of C
code inherited.
>The quality will be appalling. It almost always is, you know. :-(
>You are speaking without knowing what are you talking about.
You do not use my software, how can you say that
"the quality will be appalling"???
Are we to infer that Tea inherited the tens of thousands of lines of C
from *you* ??

Richard's remark about the quality being appalling was a reference
to Tea's inherited code, not a reference to the tools provided by lcc.
--
"It is important to remember that when it comes to law, computers
never make copies, only human beings make copies. Computers are given
commands, not permission. Only people can be given permission."
-- Brad Templeton
Nov 17 '06 #8
Walter Roberson a écrit :
In article <45************ **********@news .orange.fr>,
jacob navia <ja***@jacob.re mcomp.frwrote:
>>Richard Heathfield a écrit :
>>>Why Tea said:

>>>>However, I was
after more of a command line type of software metrics tool to get the
stats and a feel of the quality of the tens of thousands of lines of C
code inherited.

>>>The quality will be appalling. It almost always is, you know. :-(

>>You are speaking without knowing what are you talking about.
You do not use my software, how can you say that
"the quality will be appalling"???


Are we to infer that Tea inherited the tens of thousands of lines of C
from *you* ??

Richard's remark about the quality being appalling was a reference
to Tea's inherited code, not a reference to the tools provided by lcc.
Yes it could be, but he answered the wrong thread then...

Tea was referring to the tools I proposed. He could have answered
to the right thread. But OK, he can't use Usenet after all this years.

Forget it
Nov 17 '06 #9

jacob navia wrote:
Richard Heathfield a écrit :
Why Tea said:
>However, I was
after more of a command line type of software metrics tool to get the
stats and a feel of the quality of the tens of thousands of lines of C
code inherited.
The quality will be appalling. It almost always is, you know. :-(

You are speaking without knowing what are you talking about.
He was making a joke; and in my experience, he's quite right.
You do not use my software, how can you say that
"the quality will be appalling"???
What does your software have to do with it? Are you saying you supplied
the code which Why Tea wishes to analyze?
Because you like to spread your prejudices as if they were
worth something .
What are you on about?

Nov 17 '06 #10

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

Similar topics

8
5824
by: Bob II | last post by:
Hey, I've never used PHP before. I was wondering if it is possible to use PHP to generate web stats. My web host's stats aren't very good. So I want to generate some custom stats for myself. At a minimum, I want a log of the IP, referrer, environment variables, time stamp, etc., and dump it into a comma delimited text file that I can import into access or Excel. I don't need to generate gifs with PHP. Just need the raw data. Can...
8
4354
by: David Girard | last post by:
I'm getting the following error which is no big deal - the problem is it is LOCATION specific - which has me really baffled... for some reason the error only appears on different machines in different various locations. I've checked the versions of browsers and I've tried from at least 10 different pc's in different locations and the page comes up perfect. My web server is up to date with all current patches. Occasionally, someone will...
3
2787
by: Tommo | last post by:
Hello All, I am a still learning so be easy on me. I am trying to get some code to work that is using JS and Perl/CGI, I am using AS Perl and an Apache Server on XP as the webserver. Can anyone take a look at the code and tell me why I am getting Apache Server errors in the code below (Part A), when I modify the code as shown in part B the errors go but the JS does not run ?? Part A.
68
11174
by: Steve | last post by:
Hi There, Prob a simple answer to this (I hope) but I can't quite work it out yet... I have this in a page: <map name="Map"> <area shape="rect" coords="43,68,52,77" href="map.html" target="_blank" alt="Link to map"> </map>
0
1190
by: Nailah Ogeer | last post by:
Hi all, Just wondering if someone could help me with this rather specific problem. I am trying to figure out where i should insert some code that basically resets stats after a certain number of transactions(or sql statements) have been executed. Collects Stats after some more statements have been executed and continues to do this. I need to access these stats so i store them in Shared memory. The long term goal is to reset stats, collect...
9
4058
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics" portions of Babe Ruth page (http://www.baseballprospectus.com/dt/ruthba01.shtml) and store that info in a CSV file. Also, I would like to do this for numerous players whose IDs I have stored in a text file (e.g.: cobbty01, ruthba01, speaktr01, etc.)....
15
6715
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from that I can calculate weekly and monthly. At this point I have one entry per search phrase with the number of hits the search phrase has gotten, and the last time it was updated. As I start to take the program out of testing and move in more...
53
4663
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
0
1592
by: Badino | last post by:
Hi, Can someone tell me what to put in this code so that if a user selects 0 (Black) then make the font white (0) as my default colour is black on my Excel spreadsheet. Private Type CHOOSECOLOUR lStructSize As Long hwndOwner As Long Hinstance As Long rgbResult As Long lpCustColors As String
0
8676
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
8608
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
9161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8897
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
8867
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
7732
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
5860
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();...
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.