729 B
729 B
w6c — amd64 compiler. Reads .ww, writes Plan 9 amd64 assembly (.s).
- Plan 9 C style: tabs, K&R, short names. Mirror
ref/plan9front/sys/src/cmd/8c/andref/plan9front/sys/src/cmd/cc/. Do not invent new data shapes — reuseProg/Adr/Node/Sym/Typeconventions. - Frontend (lex, parse, check) lives in
../wcc/and links aslibwcc.a. This directory owns codegen only. gc.his the per-target header (Plan 9 cc convention).cgen.cwalks the AST intoProglist;txt.cprints it.peep.cis peephole.reg.cis the register allocator.swt.cis switch lowering.- The text output must be readable by
w6a(the amd64 assembler under../w6a/). When in doubt about syntax, runw6aon the output.