Main Content

Environment Settings

Preprocessing script, include files

To work around specific compilation errors, use the environment settings options. Before using these options, specify the Target and Compiler options. Then, to work around compilation errors that remain, use the Macros options for removal or simple substitution of unrecognized tokens. For more complex solutions to compilation and linking errors, use these options. For instance, you can specify a Perl script that substitutes occurrences of an unsupported code construct with regular expressions.

Polyspace Options

Source code encoding (-sources-encoding)Specify the encoding of source files
Code from DOS or Windows file system (-dos)Consider that file paths are in MS-DOS style
Stop analysis if a file does not compile (-stop-if-compile-error)Specify that a compilation error must stop the analysis
Command/script to apply to preprocessed files (-post-preprocessing-command)Specify command or script to run on source files after preprocessing phase of analysis
Include (-include)Specify files to be #include-ed by each C file in analysis

Topics