Commit Graph

1 Commits

Author SHA1 Message Date
2f09f3cba8 Add Phase 2 Headerless implementation instruction for Gemini
Phase 2 Goal: Eliminate inline headers for C standard alignment compliance

Tasks (7 total):
- Task 2.1: Add A/B toggle flag (HAKMEM_TINY_HEADERLESS)
- Task 2.2: Update ptr_conversion_box.h for Headerless mode
- Task 2.3: Modify HAK_RET_ALLOC macro (skip header write)
- Task 2.4: Update Free path (class_idx from SuperSlab Registry)
- Task 2.5: Update tiny_nextptr.h for Headerless
- Task 2.6: Update TLS SLL (skip header validation)
- Task 2.7: Integration testing

Expected Results:
- malloc(15) returns 16B-aligned address (not odd)
- TLS_SLL_HDR_RESET eliminated in sh8bench
- Zero overhead in Release build
- A/B toggle for gradual rollout

Design:
- Before: user = base + 1 (odd address)
- After:  user = base + 0 (aligned!)
- Free path: class_idx from SuperSlab Registry (no header)

🤖 Generated with Claude Code

Co-Authored-By: Gemini <gemini@example.com>
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 11:41:34 +09:00