Thread: Execution Sequence in C

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Execution Sequence in C

    I have been assigned to a project where all the source code is in C.All though the business logic is well documented but how the same maps on to source code as which function gets called etc needs to be traced. While this tracing is easy is there a good way to document the same? Like for example after generating the sequence of execution(function calls) for a set of business rules is it possible to document in a comprehendible manner in say Rational or Star UML tools.Which would be the most professional way of doing it ?

  2. #2
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    603
    I would say documenting your c code functionality as mapped against your business logic, or "use cases' would be ideally suited for UML. Perhaps something like below may help guide you:

    Dr. Dobb's | UML for C Programmers | May 1, 2005

    and this

    Step-by-Step Guide to Reverse Engineering Code into UML Diagrams with Microsoft Visio 2000

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by abhaymukewar View Post
    I have been assigned to a project where all the source code is in C.All though the business logic is well documented but how the same maps on to source code as which function gets called etc needs to be traced. While this tracing is easy is there a good way to document the same? Like for example after generating the sequence of execution(function calls) for a set of business rules is it possible to document in a comprehendible manner in say Rational or Star UML tools.Which would be the most professional way of doing it ?
    SGV Sarc's "Crystal" line of products, in particular Crystal Flow, kick total ass.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Execution Time - Rijandael encryption
    By gamer4life687 in forum C++ Programming
    Replies: 5
    Last Post: 09-20-2008, 09:25 PM
  2. Immediate programming help! Please!
    By xMEGANx in forum C++ Programming
    Replies: 6
    Last Post: 02-20-2008, 12:52 PM
  3. sequence
    By braddy in forum C Programming
    Replies: 2
    Last Post: 03-30-2006, 02:15 PM
  4. wsprintf and format specifiers
    By incognito in forum Windows Programming
    Replies: 2
    Last Post: 01-03-2004, 10:00 PM
  5. How do I restart a random number sequence.
    By jeffski in forum C Programming
    Replies: 6
    Last Post: 05-29-2003, 02:40 PM