Ver1.3 && alignment size could be set by argument

This commit is contained in:
2025-08-11 14:49:05 +08:00
parent ee707fda1a
commit 8f9dc89b9a
6 changed files with 43 additions and 14 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef __CONFIG_HPP__
#define __CONFIG_HPP__
#define ADDR_ALIGNMENT_SIZE 4 // 地址对齐方式
#define DEFAULT_ADDR_ALIGNMENT_SIZE 4 // 默认地址对齐长度
#define VARIABLE_NAME_STR_LENGTH_MAX 100 // 名称字符串最大长度
+3
View File
@@ -7,6 +7,9 @@ extern "C"
#include "stdio.h"
}
// 地址对齐长度
extern size_t addr_alignment_size;
// 类型列表
extern type_node *type_list_head;