lr/i386.c

26 lines
518 B
C

#include<stdio.h>
#include<stdlib.h>
#include"i386.h"
#include"state.h"
LangDef gen_i386_langdef(void)
{
LangDef ld={
.acc_32="eax",
.acc_wordsize="eax",
.bp="ebp",
.lea_wordsize="leal",
.mov_32="movl",
.mov_wordsize="movl",
.pop_wordsize="popl",
.push_wordsize="pushl",
.registers_abi_32={"edi","esi","edx","ecx","ecx","ecx"},
.registers_abi_wordsize={"edi","esi","edx","ecx","ecx","ecx"},
.scratch1_32="ecx",
.scratch1_wordsize="ecx",
.sp="esp",
.sub_wordsize="subl",
};
return ld;
}