Difference between revisions of "Studio:How to generate a preprocessor (.i) file for analysis"

From STRIDE Wiki
Jump to: navigation, search
Line 6: Line 6:
 
Only the selected files are compiled, and preprocessed (.i) files are generated for them. During the compilation, the workspace settings for #defines and include paths are in effect. Existing databases are not affected. <br>
 
Only the selected files are compiled, and preprocessed (.i) files are generated for them. During the compilation, the workspace settings for #defines and include paths are in effect. Existing databases are not affected. <br>
 
'''Note''': The #include <stdarg.h> will require the workspace to have a valid pointer (usually to the Microsoft C includes directory).
 
'''Note''': The #include <stdarg.h> will require the workspace to have a valid pointer (usually to the Microsoft C includes directory).
 
 
[[Category:Application Notes]]
 

Revision as of 17:55, 5 February 2008

Preprocessing individual files

You can run the preprocessor on one or more header files to generate .i files, which can then be used for analysis. To do this from within Studio, select one or more top-level header files, right-click, and choose Preprocess.
Note: You will need to rename the file to have a .h extension.

Only the selected files are compiled, and preprocessed (.i) files are generated for them. During the compilation, the workspace settings for #defines and include paths are in effect. Existing databases are not affected.
Note: The #include <stdarg.h> will require the workspace to have a valid pointer (usually to the Microsoft C includes directory).