add pool memory management

This commit is contained in:
Quentin Carbonneaux 2015-10-06 22:51:51 -04:00
parent 99ad19546d
commit 72fc455978
7 changed files with 54 additions and 33 deletions

View file

@ -272,8 +272,10 @@ void dumpts(Bits *, Tmp *, FILE *);
extern Typ typ[NTyp];
extern Ins insb[NIns], *curi;
void diag(char *);
void *ealloc(size_t);
void *alloc(size_t);
Blk *balloc();
void freeall(void);
Blk *balloc(void);
void emit(int, int, Ref, Ref, Ref);
void emiti(Ins);
int bcnt(Bits *);