docs(phase-15): Add LLVM native EXE generation strategy

## Phase 15 Documentation Updates

### ROADMAP.md
- Added LLVM Native EXE Generation as item 5 in "Next (small boxes)"
- Covers complete pipeline from MIR to executable
- Includes plan for separate nyash-llvm-compiler crate

### New Document: llvm-exe-strategy.md
- Detailed implementation strategy for LLVM backend EXE generation
- Architecture for separating LLVM compiler into independent crate
- Reduces main build time from 5-7min to 1-2min
- Enables parallel builds in CI/CD

### README.md Updates
- Updated EXE generation section to prioritize LLVM over Cranelift
- Added links to new LLVM strategy document
- Clarified current implementation status

## Benefits
- Faster development cycles with reduced build times
- Better CI/CD performance through parallelization
- Clear separation of concerns between core and LLVM compiler

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Selfhosting Dev
2025-09-12 02:02:23 +09:00
parent b120e4a26b
commit 5bee46b51f
3 changed files with 236 additions and 2 deletions

View File

@ -149,12 +149,26 @@ box TemplateStitcher {
## 🔗 EXEファイル生成・リンク戦略
### 統合ツールチェーンChatGPT5協議済み
### 統合ツールチェーン
```bash
# Cranelift版一時停止中
nyash build main.ny --backend=cranelift --target=x86_64-pc-windows-msvc
# LLVM版ChatGPT5実装中
nyash build main.ny --backend=llvm --emit exe -o program.exe
```
### 実装戦略
#### LLVM バックエンド(優先)
1. **MIR→LLVM IR**: MIR13をLLVM IRに変換実装済み
2. **LLVM IR→Object**: ネイティブオブジェクトファイル生成(実装済み)
3. **Object→EXE**: リンカー統合でEXE作成実装中
4. **独立コンパイラ**: `nyash-llvm-compiler` crateとして分離計画中
詳細は[**LLVM EXE生成戦略**](implementation/llvm-exe-strategy.md)を参照。
#### Cranelift バックエンド(保留)
1. **MIR→Cranelift**: MIR13をCranelift IRに変換
2. **Cranelift→Object**: ネイティブオブジェクトファイル生成(.o/.obj
3. **lld内蔵リンク**: lld-linkWin/ld.lldLinuxでEXE作成
@ -173,7 +187,8 @@ ny_free_buf(buffer)
## 🔗 関連ドキュメント
### 📂 実装関連implementationフォルダ
- [🚀 自己ホスティングlld戦略](implementation/lld-strategy.md)
- [🚀 LLVM EXE生成戦略](implementation/llvm-exe-strategy.md)NEW
- [🚀 自己ホスティングlld戦略](implementation/lld-strategy.md)Cranelift版
- [🧱 箱積み上げ準備メモ](implementation/box-stacking.md)
- [🏗️ アーキテクチャ詳細](implementation/architecture.md)