compile
Compile source code and return assembly output, stdout, and stderr
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin | No | Standard input for execution (requires execute=true) | |
| source | Yes | Source code to compile | |
| execute | No | Run the program instead of returning assembly. `asm` becomes empty; runtime output goes to top-level `stdout`/`stderr`; compile diagnostics move to `buildResult.stdout`/`stderr`. | |
| filters | No | Output filters | |
| options | No | Compiler flags (e.g. "-O2 -std=c++20 -Wall") | |
| compiler | No | Compiler ID from list_compilers (e.g. "g161"). If omitted, uses the language's `defaultCompiler` from list_languages. | |
| language | Yes | Language ID (e.g. "c++", "c", "rust", "python") | |
| libraries | No | Libraries to link. | |
| maxAsmLines | No | Cap asm output (default 500 lines). | |
| maxStderrLines | No | Cap each stderr stream — compile and execute separately (default 100). | |
| maxStdoutLines | No | Cap each stdout stream — compile and execute separately (default 100). |