compile_cpp
Compile C++ source bundles to obtain bounded diagnostics, assembly output, and optional optimization records, using Compiler Explorer backend.
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 | ||
| 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 |