文件
Paze AI 251ee470bf feat: Paze C Compiler - 完整改造自 tcc 0.9.28rc
- 所有 tcc 文件/内容/宏改名为 pcc (tcc.c->pcc.c, tccelf.c->pccelf.c, libtcc.c->libpcc.c 等)
- 支持架构: i386, x86_64, ARM, ARM64, RISC-V, C67
- 支持格式: PE, ELF, Mach-O, COFF
- 完整预处理、代码生成、链接器、调试信息
- 构建成功: pcc.exe (x86_64 Windows)
- 功能测试通过: 递归/结构体/浮点/switch/循环
- 自编译测试通过: pcc 可以编译自身
2026-08-16 13:30:01 +08:00

43 行
794 B
Plaintext

--- TEST 1 ---
linker symbols test
1 (etext == _etext)
1 (edata == _edata)
1 (end == _end)
1 (check_linker_symbols() == 0)
--- TEST 2 ---
DSO linker symbols test
1 (p[0] == _etext)
1 (p[1] == _edata)
1 (p[2] == _end)
--- TEST 3 ---
user definition test
1 (etext() + edata() + end() == 6)
--- TEST 4 ---
end copy relocation test
1 (end == _end)
1 ((unsigned long)end >= data_end)
1 (copy_reloc_data[256] == 42)
--- TEST 5 ---
linker boundary test
1 (linker_test_bss > linker_test_data)
1 (etext == _etext)
1 (edata == _edata)
1 (end == _end)
1 (etext >= text_addr)
1 (edata >= data_end)
1 (end >= bss_end)
1 (linker_test_data[22] == 42)
1 (linker_test_bss[256] == 42)
--- TEST 6 ---
DSO initialized data test
1 (end == 7)
1 (eight == 8)
1 (nine == 9)
1 (sum == 24)