Drawing a program function Diagram

Source: Internet
Author: User

I have been paintingProgramIn the diagram of the function, I thought it was very simple at first. I found it cumbersome and complicated, and it was a great test of human perseverance, patience, and seriousness.

First, find the functions used in the main program, and then draw the relationship between these functions according to the call sequence. Figure 1 shows the function called in the main function of Vp8 encoding.

Figure 1 main function call function diagram of Vp8 Encoding

 

Next, we will find all the functions called by each function in Figure 1 and draw a clear framework, so that we can clearly see the program architecture, it is easier to understand the program execution process.

When I started searching for a function, I thought I could just look at the program. So I set the breakpoint and run it in a single step to check which function the program is running. However, after a while, I found that the process was slow, some functions will be dropped if some conditions are not met. Is there a simple method? After asking many people, I finally learned that soure Insight, a software, has the function of extracting functions.

Then install soure insight and run project -- new project -- add your program to the new project -- select the function to be analyzed -- click the relation window icon on the toolbar, all functions called by the current function are displayed.

2. Find the function diagram:

Figure 2 search function Diagram

When I was reading the program, I still encountered a problem. In vs2005, I couldn't see the pair {}. As the program is large, it is difficult to find the end }. At the beginning, I started to look at the program step by step and look for a sentence, but it is easy to find errors, Because} too many, it is difficult to find matching. Finally, with the help of a friend, it is very convenient to know that there is a software program, and the correct {} In this software is labeled. This software is ultraedit, which is recommended for you.

The above two software are both quite good read program software.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.