compile_cpp
Compile supplied C++ source to return bounded diagnostics, assembly, and optimization records without running the program.
Instructions
Compile one supplied C++ source bundle without executing it, returning bounded diagnostics, assembly, and optional optimization records. Compilation tools transmit supplied source and virtual files to the configured Compiler Explorer backend. Assembly differences are not performance measurements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| source | Yes | ||
| window | No | ||
| filters | No | ||
| compiler | No | gcc-latest | |
| libraries | No | ||
| assembly_format | No | detailed | |
| include_assembly | No | ||
| compiler_arguments | No | ||
| include_diagnostics | No | ||
| include_optimization | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| assembly | No | ||
| compiler | Yes | ||
| warnings | No | ||
| cache_hit | No | ||
| exit_code | Yes | ||
| timed_out | Yes | ||
| diagnostics | No | ||
| fingerprint | Yes | ||
| optimization | No | ||
| cache_eligible | No | ||
| assembly_sha256 | No | ||
| backend_truncated | No | ||
| response_truncated | No | ||
| assembly_line_count | Yes |