comparison 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
comparison
equal deleted inserted replaced
486:e545196bf14f 487:7fbf3171ca15
74 FLAG_DEPENDNOERR = 0x0008, 74 FLAG_DEPENDNOERR = 0x0008,
75 FLAG_UNICORNS = 0x0010, 75 FLAG_UNICORNS = 0x0010,
76 FLAG_MAP = 0x0020, 76 FLAG_MAP = 0x0020,
77 FLAG_SYMBOLS_NOLOCALS = 0x0040, 77 FLAG_SYMBOLS_NOLOCALS = 0x0040,
78 FLAG_NOOUT = 0x80, 78 FLAG_NOOUT = 0x80,
79 FLAG_SYMDUMP = 0x100,
79 FLAG_NONE = 0 80 FLAG_NONE = 0
80 }; 81 };
81 82
82 enum lwasm_pragmas_e 83 enum lwasm_pragmas_e
83 { 84 {
414 macrotab_t *macros; // macro table 415 macrotab_t *macros; // macro table
415 sectiontab_t *sections; // section table 416 sectiontab_t *sections; // section table
416 exportlist_t *exportlist; // list of exported symbols 417 exportlist_t *exportlist; // list of exported symbols
417 importlist_t *importlist; // list of imported symbols 418 importlist_t *importlist; // list of imported symbols
418 char *list_file; // name of file to list to 419 char *list_file; // name of file to list to
420 char *symbol_dump_file; // name of file to dump symbol table to
419 int tabwidth; // tab width in list file 421 int tabwidth; // tab width in list file
420 char *map_file; // name of map file 422 char *map_file; // name of map file
421 char *output_file; // output file name 423 char *output_file; // output file name
422 lw_stringlist_t input_files; // files to assemble 424 lw_stringlist_t input_files; // files to assemble
423 void *input_data; // opaque data used by the input system 425 void *input_data; // opaque data used by the input system