Speeding up Fusion GUI memory debugger parsing.

The default settings for most of the UCD project generate pp files for all the source code C files. The memory debugger from the Fusion GUI combines all the pp files and comes up with a common set of variables that can be viewed in the memory debugger. Combining all the pp files and parsing them will take more time than parsing a single pp file. Hence it is better if we change the project settings to generate a single pp file which has all the variable that we need to see.

 

1) First pick a C file that has all the #includes in it. This file includes header files that has variables that we need to see in the memory debugger.

2) Go to the project settings and change the "Parser Preprocessing Options" as shown:

 

 

3) Now right click on a specific file , for example main.c and change the "Parser Preprocessing Options" as shown:

 

4) click "OK" and compile the project . Now, in the output directory, there will be only a single pp file called main.pp. 

 

NOTE: While writing comments in header files , it is advised not to use the comments with "  /*  Comment */ " . Please use the comments using the double slash notation ( //comment ). 

8 Replies

  • Please delete all the existing pp files before making a compile after changing the project settings .
  • To make this work, you also need to delete all the other stale .pp files in the directory which were created by earlier compiles.

    Happy Debugging,

    Ian Bower

  • i set above,but compiles error。
  • In reply to user4351959:

    Can you please tell us what the compile error is?

    Happy Debugging,

    Ian Bower

  • In reply to Ian Bower:

    Description Resource
    cannot open input file "BiDirection_DC-DC_UCD3138128.out": No such cannot open input file "BiDirection_DC-DC_UCD3138128.out": No such BiDirection_DC-DC_UCD3138128
    Description Resource
    no source files, nothing to do no source files, nothing to do BiDirection_DC-DC_UCD3138128 C/C++ Problem
  • In reply to user4351959:

    That looks like it may be a different issue than trying to speed up the parsing. If you go back to the setup before you changed the parsing, did it work OK?

    Happy Debugging,

    Ian Bower

  • In reply to user4351959:

    I've been looking at it, and it's pretty confusing.  It seems like the code as it comes from TI works - it's got the default preprocessing set to manual with none of the options checked, and allheaders.c is set to manual with the two boxes checked as shown in earlier in this string.  That gives you an allheaders.pp file.

    When I first tried allheaders.c as the only pp file, it said it couldn't find allheaders.obj, and then gave similar error messages to what you sent.

    But then I had it in automatic mode as the default preprocessor handling mode. 

    I stuck a little dummy function into allheaders.c, so that it would make a .obj file, and that seemed to be OK.

    It seems that the project as it is downloaded is already designed to generate only one .pp file. 

    I tried the method as described at the start of the posts on a different project, and it seemed to work fine. 

    Happy Debugging,

    Ian Bower