22 lines
423 B
C
22 lines
423 B
C
#include<stdio.h>
|
|
#include<stdlib.h>
|
|
#include"i386.h"
|
|
#include"state.h"
|
|
|
|
LangDef gen_i386_langdef(void)
|
|
{
|
|
LangDef ld={
|
|
.registers_abi_wordsize={"edi","esi","edx","ecx","ecx","ecx"},
|
|
.registers_abi_32={"edi","esi","edx","ecx","ecx","ecx"},
|
|
.mov_wordsize="movl",
|
|
.mov_32="movl",
|
|
.push_wordsize="pushl",
|
|
.sub_wordsize="subl",
|
|
.pop_wordsize="popl",
|
|
.sp="esp",
|
|
.bp="ebp",
|
|
.scratch1="edx",
|
|
};
|
|
return ld;
|
|
}
|