Motherboard Forums


Reply
Thread Tools Display Modes

Tools to view the C code ?

 
 





















Michael
Guest
Posts: n/a

 
      09-23-2006, 12:19 PM


Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
know any other tools to view C diagrams ?

Rgs,
Michael

 
Reply With Quote
 
Hans-Bernhard Broeker
Guest
Posts: n/a

 
      09-23-2006, 05:11 PM
Michael <> wrote:
> Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
> know any other tools to view C diagrams ?


You'll have to re-explain what it is you're trying to do. C generally
doesn't come in diagrams, so there wouldn't be anything to "view".
What this takes is to parse existing C, and *turn* it into diagrams.
And that's where the really tough question would come up: *what type*
of diagrams? You could be thinking of Nassi-Shneiderman structograms,
some kind of SA/SD design diagrams, or even UML, for goodness' sake!

--
Hans-Bernhard Broeker ()
Even if all the snow were burnt, ashes would remain.
 
Reply With Quote
 
David Ashley
Guest
Posts: n/a

 
      09-23-2006, 05:16 PM
Hans-Bernhard Broeker wrote:
> Michael <> wrote:
>
>>Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
>>know any other tools to view C diagrams ?

>
>
> You'll have to re-explain what it is you're trying to do. C generally
> doesn't come in diagrams, so there wouldn't be anything to "view".
> What this takes is to parse existing C, and *turn* it into diagrams.
> And that's where the really tough question would come up: *what type*
> of diagrams? You could be thinking of Nassi-Shneiderman structograms,
> some kind of SA/SD design diagrams, or even UML, for goodness' sake!
>


Maybe he's talking about ctree or calltree or something like that.
Or ctags which show where something is defined.

-Dave

--
David Ashley http://www.xdr.com/dash
Embedded linux, device drivers, system architecture
 
Reply With Quote
 
dunkin
Guest
Posts: n/a

 
      09-23-2006, 06:45 PM
PPT120.ZIP - old, dos based, won't work on computers faster than 230mhz
Pentium I,
but its free and does good job with analyzing C. Its on the web somewhere
I'm sure.

"Hans-Bernhard Broeker" <> wrote in message
news:...
> Michael <> wrote:
>> Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
>> know any other tools to view C diagrams ?

>
> You'll have to re-explain what it is you're trying to do. C generally
> doesn't come in diagrams, so there wouldn't be anything to "view".
> What this takes is to parse existing C, and *turn* it into diagrams.
> And that's where the really tough question would come up: *what type*
> of diagrams? You could be thinking of Nassi-Shneiderman structograms,
> some kind of SA/SD design diagrams, or even UML, for goodness' sake!
>
> --
> Hans-Bernhard Broeker ()
> Even if all the snow were burnt, ashes would remain.
>



 
Reply With Quote
 
Michael
Guest
Posts: n/a

 
      09-24-2006, 10:44 AM
Yes you are right. I meant UML type diagrams. Although UML is mainly
intended for object oriented languages.
We currently use Sense because it's nice and fast. But I want to try
out some other free tools.

Hans-Bernhard Broeker wrote:
> Michael <> wrote:
> > Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
> > know any other tools to view C diagrams ?

>
> You'll have to re-explain what it is you're trying to do. C generally
> doesn't come in diagrams, so there wouldn't be anything to "view".
> What this takes is to parse existing C, and *turn* it into diagrams.
> And that's where the really tough question would come up: *what type*
> of diagrams? You could be thinking of Nassi-Shneiderman structograms,
> some kind of SA/SD design diagrams, or even UML, for goodness' sake!
>
> --
> Hans-Bernhard Broeker ()
> Even if all the snow were burnt, ashes would remain.


 
Reply With Quote
 
Hans-Bernhard Broeker
Guest
Posts: n/a

 
      09-24-2006, 11:44 AM
Michael <> wrote:
> Yes you are right. I meant UML type diagrams. Although UML is mainly
> intended for object oriented languages.


Not quite. UML is meant to be used for object-oriented analysis and
design. It doesn't matter all that much whether the implementation is
done in an OO language.

Turning this around, it means that if the program under study, like
the vast majority of embedded C code, was designed with no regard
whatsoever to OO patterns and styles, odds that reverse-UML-ing it
would produce a useful view of the program are slim.

C code tends to be either hacked together without any design to speak
of, or designed along the structured analysis/structured design
(SA/SD) paradigm. OO designs can generally be implemented in C, but
most C doesn't come from such roots.

--
Hans-Bernhard Broeker ()
Even if all the snow were burnt, ashes would remain.
 
Reply With Quote
 
Dan Henry
Guest
Posts: n/a

 
      09-27-2006, 01:31 AM
On 23 Sep 2006 04:19:05 -0700, "Michael" <>
wrote:

>Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
>know any other tools to view C diagrams ?


http://scitools.com/products/understand/cpp/product.php

--
Dan Henry
 
Reply With Quote
 
Bill Davy
Guest
Posts: n/a

 
      09-27-2006, 09:13 AM

"Dan Henry" <> wrote in message
news:...
> On 23 Sep 2006 04:19:05 -0700, "Michael" <>
> wrote:
>
>>Beside Sense (www.agv-sense.com) and Together (www.borland.com) do you
>>know any other tools to view C diagrams ?

>
> http://scitools.com/products/understand/cpp/product.php
>
> --
> Dan Henry


I found Development Assistant for C very useful, a few years ago.
http://www.ristancase.com/dac/v40/index.php


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 09:19 PM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43