comparison lwasm/lwasm.h @ 365:3f8abaac214c

Add map file output and option to suppress local symbols in listings Add --map option to generate a symbol map in a regular format that can be used as an import for other tools. Also add --symbols-nolocals to suppress output of local symbols in the symbol listing. In other words, only global symbols are listed. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Tue, 02 Jun 2015 20:08:58 -0600
parents 4130ffdeb5c8
children 433dbc18fb41
comparison
equal deleted inserted replaced
364:44270b66df3c 365:3f8abaac214c
74 FLAG_LIST = 0x0001, 74 FLAG_LIST = 0x0001,
75 FLAG_DEPEND = 0x0002, 75 FLAG_DEPEND = 0x0002,
76 FLAG_SYMBOLS = 0x004, 76 FLAG_SYMBOLS = 0x004,
77 FLAG_DEPENDNOERR = 0x0008, 77 FLAG_DEPENDNOERR = 0x0008,
78 FLAG_UNICORNS = 0x0010, 78 FLAG_UNICORNS = 0x0010,
79 FLAG_MAP = 0x0020,
80 FLAG_SYMBOLS_NOLOCALS = 0x0040,
79 FLAG_NONE = 0 81 FLAG_NONE = 0
80 }; 82 };
81 83
82 enum lwasm_pragmas_e 84 enum lwasm_pragmas_e
83 { 85 {
304 macrotab_t *macros; // macro table 306 macrotab_t *macros; // macro table
305 sectiontab_t *sections; // section table 307 sectiontab_t *sections; // section table
306 exportlist_t *exportlist; // list of exported symbols 308 exportlist_t *exportlist; // list of exported symbols
307 importlist_t *importlist; // list of imported symbols 309 importlist_t *importlist; // list of imported symbols
308 char *list_file; // name of file to list to 310 char *list_file; // name of file to list to
311 char *map_file; // name of map file
309 char *output_file; // output file name 312 char *output_file; // output file name
310 lw_stringlist_t input_files; // files to assemble 313 lw_stringlist_t input_files; // files to assemble
311 void *input_data; // opaque data used by the input system 314 void *input_data; // opaque data used by the input system
312 lw_stringlist_t include_list; // include paths 315 lw_stringlist_t include_list; // include paths
313 lw_stack_t file_dir; // stack of the "current file" dir 316 lw_stack_t file_dir; // stack of the "current file" dir