mort_emit_c
Generate and inspect the C code Mort emits for a program, including bare-metal freestanding output without libc or main, to verify constructs or debug code generation.
Instructions
Show the C that Mort generates for a program (useful to see what a construct compiles to, or to debug codegen). freestanding=True emits bare-metal C (no libc, no main) as used for the MORT OS kernel.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mort_emit_c"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| source | No | ||
| freestanding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |