make-doom-for-mips
Installation
SKILL.md
Cross-Compiling C Programs for MIPS VM Environments
Overview
This skill provides guidance for cross-compiling complex C programs to run on MIPS-based virtual machines with custom runtime environments. The primary challenge involves creating freestanding executables that work without standard system libraries, implementing custom syscall interfaces, and ensuring the compiled binary actually produces expected output in the target VM.
Critical Success Criteria
Before declaring any task complete, verify the actual acceptance criteria are met:
- Identify what output the VM expects (e.g., frame files, console output, specific exit codes)
- Run the compiled binary in the VM and confirm expected artifacts are created
- Never accept "the program runs some instructions" as success - verify end-to-end functionality
Approach
Phase 1: Environment Analysis
Before writing any code, thoroughly analyze the target environment: