Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

C/C++ source code analysis tool?

Status
Not open for further replies.

yager

Member level 5
Joined
May 28, 2001
Messages
93
Helped
33
Reputation
66
Reaction score
14
Trophy points
1,288
Activity points
760
source insight vs ristancase dac

Does anyone know which source code analysis tool is good
for Embedded C/C++?
lint, LintPlus, CC-Rider, or more?
TIA
 

tom324

Full Member level 1
Joined
Jun 26, 2001
Messages
98
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Croatia
Activity points
672
Hi,

I use PC-Lint (www.gimpel.com) for both embedded and non-embedded C/C++ programming. It is a 'never-leave-home-without' tool.

Tom
 

FIGUE

Newbie level 6
Joined
Feb 10, 2002
Messages
13
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Location
Argentina
Activity points
103
Code Analysis Tool and Reverse Engineering

Hi

I'm using Imagix 4D and Understand for C++ both products are good, I prefer Imagix is a bit more complicate to use than Understand but is excellent.
the URL are:

h**p:\\www.imagix.com

h**p:\\www.scitools.com

:D
 

euphonic

Newbie level 3
Joined
Mar 29, 2002
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
24
"Source insight" and "Understand C++" both are good analysis tool
 

visioneer

Full Member level 1
Joined
Jan 6, 2002
Messages
98
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,072
DAC(Development Assistant for C) is also helpful.
 

830

Member level 3
Joined
Mar 3, 2002
Messages
57
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Korea
Activity points
104
You can try softwares from Parasoft, as CodeWizard, C++ Test and Insure++.
 

yager

Member level 5
Joined
May 28, 2001
Messages
93
Helped
33
Reputation
66
Reaction score
14
Trophy points
1,288
Activity points
760
visioneer said:
DAC(Development Assistant for C) is also helpful.
The DAC is strong enough? I have no ideas.
I download and got 2 weeks trial license of DAC v4.058
and evaluate it by a simple code such like as:
Code:
#define VOID void
#define ROM  code
typedef VOID (ROM *FuncPtr)(VOID);

main()
{
   ((FuncPtr)0x1234)();
}
Unfortunately, DAC said error when 'build database', it could not recognize.
But the code could be successful compiled such like as Keil C51 v5.xx~v7.xx.
Anyway, I sent it to RistanCASE and still waiting their answers....
 

alledauser

Member level 1
Joined
May 16, 2001
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
287
Rational Rose and some other uml tools can be used to build uml models such as class diagrams from the c++ source code.
regards
 

manitooo

Full Member level 2
Joined
Oct 30, 2001
Messages
136
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,296
Activity points
1,427
Hi...

just for information, the following code :

#define VOID void
#define ROM code
typedef VOID (ROM *FuncPtr)(VOID);

main()
{
((FuncPtr)0x1234)();
}

works fine with source insight (which is for me the best source code editor I've ever seen, from far, far, far away above the others )

bye
 

jergen

Junior Member level 1
Joined
Sep 24, 2001
Messages
17
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
51
easycode is the best tools,But I cann't find the serial still.I thinks the others including sci and si and dac and so on,is next selection.
 

flatsat

Newbie level 1
Joined
May 14, 2003
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
18
please visit souceforge!
this is a good website for source codes
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,191
I use Pc-Lint 8.0 from www.gimpel.com.

And I can tell you that it often saved me hours of debuging by carefully examining its output messages on the "perfect" programs I had written.

best regards
 

tom324

Full Member level 1
Joined
Jun 26, 2001
Messages
98
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Croatia
Activity points
672
PC-Lint 8.0L is available here:

h**p://www.wasm.ru/toollist.php?list=7

Tom
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
Could you tell me how to set up Lint8? The config program looks for stuff in the registry which doesn't exsist. Is there a workround?
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,191
btbass,

no need to use the installer, simply unpack the archieve for example into c:\lint

Then use a batchfile like this (for keil C51 compiler):
C:\Lint\LINT-NT.EXE -ic:\lint +v +e9 -t4 co-kc51.lnt -passes(2) xxx.c

for Hi-Tech compiler:
C:\Lint\LINT-NT.EXE -ic:\lint +v +e9 -t4 -d_16F877 co-ht.lnt -passes(2) xxx.c

to lint your source.

Maybe you will be as surprised as I was a few years ago what lint "thinks" about your "perfect" sourcecode :)

Should you need more help do not hesitate to contact me.

best regards
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
I downloaded a new config file from their homesite which works ok. Thanks for the info, lint is very good tool.
 

tom324

Full Member level 1
Joined
Jun 26, 2001
Messages
98
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Croatia
Activity points
672
It is a good idea to check Gimpel's site every now and then to update Lint. Current version is 8.0p.

Tom
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top