[Libre-soc-bugs] [Bug 980] Implement C-based Power ISA pseudocode compiler

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jan 14 19:55:19 GMT 2024


https://bugs.libre-soc.org/show_bug.cgi?id=980

--- Comment #107 from Dmitry Selyutin <ghostmansd at gmail.com> ---
OK, with the recent commits, despite some glitches, we're able to produce
_some_ C code for any pseudocode. By "any pseudocode" I assume the following:

for insn in db:
    tree = parser.parse(code="\n".join(insn.pcode))
    for (level, line) in pc_code.code(insn=insn, root=tree):
        print(f"{' ' * 4 * level}{line}")

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list