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.