Cross-Compilation Notes
D3-TUI is cross-compiled for the SH4 processor:
Host: x86_64 Linux → Target: SH4 Dreamcast
Compiler: sh-elf-gcc
Binutils: sh-elf-as, sh-elf-ld, sh-elf-ar
Toolchain Directory Structure
/opt/toolchains/
└── dc/
├── kos/ # KOS SDK
│ ├── kernel/
│ ├── addons/
│ └── utils/
├── sh4elf/ # SH4 toolchain
│ ├── bin/
│ │ ├── sh-elf-gcc
│ │ ├── sh-elf-objcopy
│ │ └── ...
│ └── lib/
└── newlib/