comparison lwasm/list.c @ 390:027d7fbcdcfc

Basic symbol table output; needs work for non-constant symbols
author lost@l-w.ca
date Wed, 14 Jul 2010 22:46:56 -0600
parents fbb7bfed8076
children f792faf877bb
comparison
equal deleted inserted replaced
389:fbb7bfed8076 390:027d7fbcdcfc
27 #include <lw_alloc.h> 27 #include <lw_alloc.h>
28 #include <lw_string.h> 28 #include <lw_string.h>
29 29
30 #include "lwasm.h" 30 #include "lwasm.h"
31 #include "instab.h" 31 #include "instab.h"
32
33 void list_symbols(asmstate_t *as, FILE *of);
32 34
33 /* 35 /*
34 Do listing 36 Do listing
35 */ 37 */
36 void do_list(asmstate_t *as) 38 void do_list(asmstate_t *as)
130 } 132 }
131 if (i % 8) 133 if (i % 8)
132 fprintf(of, "\n"); 134 fprintf(of, "\n");
133 } 135 }
134 } 136 }
137
138 if (as -> flags & FLAG_SYMBOLS)
139 list_symbols(as, of);
135 } 140 }