diff lwasm/lwasm.h @ 487:7fbf3171ca15

Add symbol table dump in assembly format Add --symbol-dump[=FILE] which will dump the global symbol table in assembly source format to stdout or to the FILE named by FILE.
author William Astle <lost@l-w.ca>
date Fri, 03 May 2019 19:44:02 -0600
parents 469a130e7029
children bab891d85a53
line wrap: on
line diff
--- a/lwasm/lwasm.h	Wed Apr 24 19:54:51 2019 -0600
+++ b/lwasm/lwasm.h	Fri May 03 19:44:02 2019 -0600
@@ -76,6 +76,7 @@
 	FLAG_MAP = 0x0020,
 	FLAG_SYMBOLS_NOLOCALS = 0x0040,
 	FLAG_NOOUT = 0x80,
+	FLAG_SYMDUMP = 0x100,
 	FLAG_NONE = 0
 };
 
@@ -416,6 +417,7 @@
 	exportlist_t *exportlist;			// list of exported symbols
 	importlist_t *importlist;			// list of imported symbols
 	char *list_file;					// name of file to list to
+	char *symbol_dump_file;				// name of file to dump symbol table to
 	int tabwidth;						// tab width in list file
 	char *map_file;						// name of map file
 	char *output_file;					// output file name