stable 重构文件结构
抽象出Machine Code
This commit is contained in:
18
src/assembler/riscv32/riscv32_asm.h
Normal file
18
src/assembler/riscv32/riscv32_asm.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __SMCC_RISCV32_ASM_H__
|
||||
#define __SMCC_RISCV32_ASM_H__
|
||||
|
||||
#include <lib/utils/strpool/strpool.h>
|
||||
#include <src/mcode/riscv32/riscv32_mcode.h>
|
||||
#include "symtab_asm.h"
|
||||
typedef struct rv32_prog {
|
||||
strpool_t* strpool;
|
||||
symtab_asm_t symtab;
|
||||
u32_t text_base_address;
|
||||
u32_t data_base_address;
|
||||
vector_header(data, iptr_t);
|
||||
mcode_rv32_t mcode;
|
||||
} rv32_prog_t;
|
||||
|
||||
void init_rv32_prog(rv32_prog_t* prog, strpool_t* strpool);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user