用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/sebastianbiallas/pearpc --skill analyze-jitc-log命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | analyze-jitc-log |
| description | Analyze jitc.log to find JIT compilation issues — fragment gaps, branch overflow, bad codegen |
| allowed-tools | Bash, Read, Grep |
| argument-hint | ["log-file"] |
The jitc.log file contains all translated PPC→AArch64 code. Each entry shows:
Read the END of the log first — the most recently compiled code is at the bottom:
tail -100 ${ARGUMENTS:-jitc.log}
Check for fragment gaps — look for large jumps in native addresses between consecutive instructions. Two consecutive AArch64 instructions should be 4 bytes apart. If the gap is >512 bytes, a new fragment was allocated:
python3 -c "
import re, sys
lines = open('${ARGUMENTS:-jitc.log}').readlines()
prev_addr = None
for line in lines:
m = re.match(r'\s+([0-9a-f]+)\s+[0-9a-f]+\s+', line)
if m and len(m.group(1)) > 6: # native address (long hex)
addr = int(m.group(1), 16)
if prev_addr and addr - prev_addr > 512:
print(f'FRAGMENT GAP: {prev_addr:x} -> {addr:x} (distance: {addr - prev_addr} bytes)')
prev_addr = addr
"
Check for conditional branch overflow risk — any B.cc (0x54xxxxxx) instruction followed by a fragment gap means the conditional branch might not reach its target. B.cc range is ±1MB (±0x100000):
54 prefix instructions near fragment boundariesCheck for unresolved fixups — 14000000 is B #0 (branch to self), which means a fixup was never resolved:
grep '14000000' ${ARGUMENTS:-jitc.log}
Check for GEN_INTERPRET overhead — look for the pattern: store current_opc, compute pc from base+offset, store pc, store npc, mov x0 cpu, blr interpreter. Count how many bytes each PPC instruction takes in native code.
Identify the PPC page being compiled — the first column shows PPC offsets within the page. The current_code_base (stored at CPU offset 904) gives the page base EA.