473,385 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

parse C source flow to extract program tree

Hello colleagues,

Could anybody tell me if there are existing open-source solutions to
extract the program tree using a program source code? I'm aware that
GCC has program flow information and tree respectively for
optimization, but I'm looking for something less complicated.
An ideal case would be a small program based on a parser with YACC
compatible grammar which extracts the program flow tree.

Best regards,
C
Jan 15 '08 #1
6 2414
Crooter wrote:
Hello colleagues,

Could anybody tell me if there are existing open-source solutions to
extract the program tree using a program source code? I'm aware that
GCC has program flow information and tree respectively for
optimization, but I'm looking for something less complicated.
An ideal case would be a small program based on a parser with YACC
compatible grammar which extracts the program flow tree.
Not really OT here (guess it'd be topical in comp.unix.programmer), but try
looking for cflow.

Bye, Jojo
Jan 15 '08 #2
On Jan 15, 6:26*am, Crooter <crooo...@gmail.comwrote:
Hello colleagues,

Could anybody tell me if there are existing open-source solutions to
extract the program tree using a program source code? I'm aware that
GCC has program flow information and tree respectively for
optimization, but I'm looking for something less complicated.
An ideal case would be a small program based on a parser with YACC
compatible grammar which extracts the program flow tree.
http://sourceforge.net/search/?type_...ords=flowchart
FCOL
Jan 16 '08 #3
Thanks a lot, Jojo, it looks like the most suitable solution.
Joachim Schmitz:
Crooter wrote:
....skipped...
Not really OT here (guess it'd be topical in comp.unix.programmer), but try
looking for cflow.

Bye, Jojo
Jan 16 '08 #4
Thank you, the tools you mentioned are quite good for human analysis
of source code (graphical representation especially), but I was
looking for something more 'internal' or intermediate. Still the ideas
in the tools can be interesting.

To be honest, I'm surprised with the speed you answered. I wish I
could help anybody so fast. :)

On 16 ÑÎ×, 07:00, user923005 <dcor...@connx.comwrote:
On Jan 15, 6:26šam, Crooter <crooo...@gmail.comwrote:
http://sourceforge.net/search/?type_..._of_search=sof....
FCOL
Jan 16 '08 #5
Crooter wrote:
Thanks a lot, Jojo, it looks like the most suitable solution.
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html>
Jan 16 '08 #6
Crooter wrote: *** and top-posted. Fixed. ***
>
.... snip ...
>
Thank you, the tools you mentioned are quite good for human
analysis of source code (graphical representation especially),
but I was looking for something more 'internal' or intermediate.
Still the ideas in the tools can be interesting.

To be honest, I'm surprised with the speed you answered. I wish
I could help anybody so fast. :)
Please do not top-post. Your answer belongs after (or intermixed
with) the quoted material to which you reply, after snipping all
irrelevant material. I fixed this one. See the following links:

--
<http://www.catb.org/~esr/faqs/smart-questions.html>
<http://www.caliburn.nl/topposting.html>
<http://www.netmeister.org/news/learn2quote.html>
<http://cfaj.freeshell.org/google/ (taming google)
<http://members.fortunecity.com/nnqweb/ (newusers)

--
Posted via a free Usenet account from http://www.teranews.com

Jan 17 '08 #7

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

Similar topics

5
by: Manlio Perillo | last post by:
Hi. With module parser it is possible to access Python parse trees. But this only works for 'external' source. I would like to known if, at least in theory, it can be possible to access Python...
0
by: Chad Whitacre | last post by:
Hey all, I've been playing around with the parser module, and based on the documentation I would expect all symbols in a parse tree to be part of the grammar. For example, I find this line in...
0
by: M.B. | last post by:
Hi I'm currently converting an application from Java to C#, and in this application I need to read a C# source file, extract some information and then write a modified version of the original...
22
by: Ram Laxman | last post by:
Hi all, I have a text file which have data in CSV format. "empno","phonenumber","wardnumber" 12345,2234353,1000202 12326,2243653,1000098 Iam a beginner of C/C++ programming. I don't know how to...
3
by: Aaron | last post by:
I'm a newbie so please bear with me... I'm looking to parse XML into a Collection so that I can pass that collection around to functions to extract data from it easily. I'm hoping there is...
4
by: kj | last post by:
I consider myself quite proficient in C and a few other programming languages, but I have never succeeded in understanding a largish program (such as zsh or ncurses) at the source level. ...
34
by: priyanka | last post by:
Hi, I was wondering if we could parse or do something in the executable( whose source language was C). How can I use some scripting language like perl/python to find out the information about...
29
by: gs | last post by:
let say I have to deal with various date format and I am give format string from one of the following dd/mm/yyyy mm/dd/yyyy dd/mmm/yyyy mmm/dd/yyyy dd/mm/yy mm/dd/yy dd/mmm/yy mmm/dd/yy
5
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.