comparison src/lwasm.h @ 42:4bb7b723e5b7

Added pass2 code generation to lwasm_emit()
author lost
date Sun, 04 Jan 2009 06:13:13 +0000
parents 9bd584bb6296
children 2330b88f9600
comparison
equal deleted inserted replaced
41:7eafdb3a8074 42:4bb7b723e5b7
48 lwasm_line_t *next; // next line 48 lwasm_line_t *next; // next line
49 lwasm_line_t *prev; // previous line 49 lwasm_line_t *prev; // previous line
50 lwasm_error_t *err; // error messages 50 lwasm_error_t *err; // error messages
51 int fsize; // forced size (0 = no forced size) 51 int fsize; // forced size (0 = no forced size)
52 char *sym; // scratch area to record the presence of a symbol 52 char *sym; // scratch area to record the presence of a symbol
53 unsigned char *bytes; // actual bytes emitted
54 int codelen; // number of bytes emitted
55 int codesize; // the size of the code buffer
53 }; 56 };
54 57
55 // for keeping track of symbols 58 // for keeping track of symbols
56 typedef struct lwasm_symbol_ent_s lwasm_symbol_ent_t; 59 typedef struct lwasm_symbol_ent_s lwasm_symbol_ent_t;
57 struct lwasm_symbol_ent_s 60 struct lwasm_symbol_ent_s