add a code emitter for at&t syntax
This commit is contained in:
parent
5f14d7fd7c
commit
fd964388f7
4 changed files with 145 additions and 1 deletions
|
@ -19,9 +19,9 @@ enum {
|
|||
RAX = 1,
|
||||
RCX,
|
||||
RDX,
|
||||
RBX,
|
||||
RSI,
|
||||
RDI,
|
||||
RBX,
|
||||
R8,
|
||||
R9,
|
||||
R10,
|
||||
|
@ -164,6 +164,7 @@ struct Fn {
|
|||
int ntmp;
|
||||
int nblk;
|
||||
Blk **rpo;
|
||||
uint nspill;
|
||||
};
|
||||
|
||||
|
||||
|
@ -197,3 +198,6 @@ void spill(Fn *);
|
|||
|
||||
/* rega.c */
|
||||
void rega(Fn *);
|
||||
|
||||
/* emit.c */
|
||||
void emitfn(Fn *, FILE *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue