第10步:複數文字的區域變數
foo = 1;
bar = 2 + 3;
return foo + bar; // 回傳6typedef struct LVar LVar;
// 區域變數型態
struct {
LVar *next; // 下個變數或NULL
char *name; // 變數的名稱
int len; // 名稱的長度
int offset; // 從RBP起的offset
} LVar;
// 區域變數
LVar *locals;Last updated