generate_asm
Compile C source code to a 16-bit x86 assembly listing for inspecting code generation and optimization.
Instructions
Compile C to a Turbo C assembly listing (TCC -S) and return the generated .ASM. Great for teaching how C maps to 16-bit x86, inspecting codegen, or optimization study.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | C source code. | |
| filename | No | Optional file name; normalized to DOS 8.3 (.C). Default MAIN.C. | |
| extraCompilerArgs | No | Optional extra Turbo C flags, e.g. ['-ms','-w-','-O']. |