Configurar fuentes y opciones de compilación
R2026bSi utiliza un comando de compilación como make o cmake para compilar el código fuente, o si puede generar una base de datos de compilación JSON con su sistema de compilación, puede crear un proyecto de la plataforma Polyspace® a partir del comando de compilación o la base de datos de compilación. Los archivos fuente y las opciones de compilación del proyecto de la plataforma Polyspace se determinan a partir de las invocaciones al compilador en el comando de compilación o la base de datos de compilación.
De lo contrario, establezca las opciones de manera explícita en la configuración de la compilación. Especificar el compilador para la opción Cadena de herramientas de compilación (análisis estáticos) permite al analizador reconocer palabras clave específicas del compilador. Resuelva cualquier error de análisis relacionado con la compilación con opciones como Definiciones del preprocesador (-D) o Comando/script para aplicarlo a los archivos preprocesados (-post-preprocessing-command).
Funciones
polyspace-configure | (System Command) Create Polyspace Platform project, workspace, or options file from build command or compilation database |
Opciones de Polyspace
Temas
Introducción
- Configure Sources and Build Options in Project for Polyspace Analysis and Testing
Set build options in Polyspace project configuration, generate source paths and build options using build command or compilation database. - Information Gathered from Build Systems for Polyspace Analysis and Testing
Learn what information is extracted when you trace your build command to create a Polyspace Platform project.
Configurar opciones utilizando comandos de compilación
- Create Polyspace Platform Project from Build Command in User Interface
Create a project in the Polyspace Platform user interface from a working build command or compilation database. - Requirements for Polyspace Project Creation from Build Systems
Learn why automatic Polyspace project creation might not work for your build system and how to work around some of the causes. - Select Files for Polyspace Project Using Pattern Matching
Select files to include in Polyspace project or options file using expressions with glob patterns. - Create Polyspace Platform Projects from Builds That Use Makefiles
Reuse build information in makefiles for Polyspace analysis and testing. - Modularize Polyspace Projects by Using Makefile Builds
Create a separate Polyspace project or options file for each binary in makefile build. - Create Polyspace Platform Projects from IDE Builds
Specify source files and configuration options by tracing your Visual Studio® build. - Create Polyspace Platform Projects from CMake Builds
Reuse build information in CMakeLists files for Polyspace analysis and testing. - Create Polyspace Platform Project from Cross-Compiler Build
Create a project with a fully configured template toolchain from a cross-compiler build command.
Configurar opciones manualmente
- Configure Sources and Build Options in Project for Polyspace Analysis and Testing
Set build options in Polyspace project configuration, generate source paths and build options using build command or compilation database. - Selecting Common Toolchain for Static Analysis and Testing
Understand how the static analysis compiler is determined from the compilation toolchain that you select for testing. - Provide Standard Library Headers for Polyspace Analysis
Find paths to C or C++ standard library headers from your compiler and specify the paths in your Polyspace project. - Remove or Replace Keywords Before Compilation
Replace or remove keywords from preprocessed code to avoid compilation errors. - Gather Compilation Options Efficiently for Polyspace Analysis
Put workarounds for compilation errors into a single file and include that file in analysis.
Compatibilidad con estándares y extensiones del lenguaje C/C++
- C/C++ Language Standard Used in Polyspace Analysis
See supported language standards and the default standard used in Polyspace analysis.
- Keil or IAR Language Extensions Supported with Polyspace
Find which Keil or IAR-specific extensions of the C language standard are supported for verification.