LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-19-2007, 03:53 AM   #1
tasnim
LQ Newbie
 
Registered: Oct 2007
Posts: 18

Rep: Reputation: 0
Unhappy cc compiler and grahviz


hi.
i would like to know
how to graph a c program
in graphviz.
(
ex-
recursive function (fibonacci) to be traced by graphviz how?
)
? softwares r to be downloaded for graphviz.
OS is suse linux 10.1.
 
Old 10-23-2007, 03:39 AM   #3
tasnim
LQ Newbie
 
Registered: Oct 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Exclamation

please graph the following recursive function to trace the number of calls made (via gcc compiler and graphviz)
int fib(int n){
if(n==1) return 1;
if(n<=0) return 0;
return fib(n-1) + fib(n-2);
}
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
My c compiler doesn't work after the cross-compiler installed heracles.cn Linux - Newbie 1 06-05-2007 03:55 AM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
No compiler to compiler the compliler NewtonIX Linux - Newbie 13 11-03-2003 05:32 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration