62 Commits (7c073b5c230d40d4ceeaf2be00c3cc8be1797ac8)

Author SHA1 Message Date
Peter Johnson 62750a30d3 Enhance bc_resolve() implementation a bit, but comment out, as this function 23 years ago
Peter Johnson 8a515e968a Reverse how traverse functions do early termination (now, they terminate on 23 years ago
Peter Johnson 66bf6be085 Implement rest of bc_calc_len for general bytecodes. 23 years ago
Peter Johnson 5b2166d50a Don't store "determined" immediate len and neg. Both will be determined from 23 years ago
Peter Johnson ee74365f05 Add new bc_resolve() family, and rewrite calc_len to /just/ calculate the 23 years ago
Peter Johnson cc635cc237 Change return type of calc_len() family back to int from unsigned long. 23 years ago
Peter Johnson e23d88b957 Make resolve_label() take a symrec * instead of a section * and bytecode *. 23 years ago
Peter Johnson e2f2ede90c bc_calc_len() family should return unsigned long, not int. 23 years ago
Peter Johnson 3f2186c1bf Change from current file/line dual storage to a monotonically-increasing line 23 years ago
Peter Johnson 2727869bd8 Start work on optimizer module. Moved all "post-parser-finalization" code 24 years ago
Peter Johnson 0f852333df LCLint-related comment fixes. 24 years ago
Peter Johnson ae85d1edb1 Add support for incbin pseudo-instruction. 24 years ago
Peter Johnson e8d7d5cad9 Add opt_flags (space for use by the optimizer). 24 years ago
Peter Johnson 825eaa5823 Massive cleanup of debugging output (via _print() functions). All now take 24 years ago
Peter Johnson 7a3761ac0c Plug memory leak in dvs_delete(). 24 years ago
Peter Johnson 8178f883a5 Modify so that almost everything passes LCLint with the options in lclint.sh. 24 years ago
Peter Johnson f58d7cb093 Split x86-specific stuff away from bytecode. 24 years ago
Peter Johnson a7ac50c918 Add coretype.h, make util.h do a lot more, use util.h to simplify include 24 years ago
Peter Johnson 405df52913 bytecode_print(): Change how NULL values are output for imm and multiple. 24 years ago
Peter Johnson 4d95de5161 Plug memory leaks, and enhance finding later ones with *_delete functions. 24 years ago
Peter Johnson dc1c3c70f5 Get rid of all the extra filename strdup()'s. (Bug #14). 24 years ago
Peter Johnson 7a6eaf8c03 Make InternalError() a bit easier to call. Also, reverse its file and line 24 years ago
Peter Johnson 6f708e3034 Add xfree() to replace calls to free(). 24 years ago
Peter Johnson adf5a95e89 Add option for malloc debugging using dmalloc library (http://dmalloc.com/). 24 years ago
Peter Johnson e7bab50cf2 Parse NOSPLIT. 24 years ago
Peter Johnson 121f93b0a0 *COMPLETELY* rewrite most of expression handling. 24 years ago
Peter Johnson e640f25da5 Update comment on disp.len to match changes in expr.c. 24 years ago
Peter Johnson 6ac7d95579 Call expr_expand_equ() on effective address from bytecode_parser_finalize(). 24 years ago
Peter Johnson 0be7a0d444 Add first version of post-parsing bytecode finalization. Lots of work still 24 years ago
Peter Johnson 053329a368 Clarify and fix some usages of valid/need flags for modrm and sib bytes. 24 years ago
Peter Johnson 84de990744 Support TIMES prefix. Split expr parsing to have a no-float and no-string 24 years ago
Peter Johnson 193392dcb6 Fix LOTS of little nits. Primary changes: 24 years ago
Peter Johnson 217b33802c Make data.insn.imm within bytecode a pointer. This prevents leakage in calls to 24 years ago
Peter Johnson 48a36cdf22 Make most data structures opaque, keeping internals truly internal and making the 24 years ago
Peter Johnson b13f4e4f87 malloc->xmalloc, strdup->xstrdup, and calloc->xcalloc. The x* family performs 24 years ago
Peter Johnson 98e25fc1f6 Add some (optional through configure) additional warning flags. Add options 24 years ago
Peter Johnson 1abd74ba04 Fix large parts of expression and symbol handling. Actually link in labels 24 years ago
Peter Johnson 60fd596a66 Cleaned up bytecode data structure, some effaddr functions. Made ea an 24 years ago
Peter Johnson 1fd753346c Build section linked list, and support the section directive, including 24 years ago
Peter Johnson b2890b8f9d $Id$ -> $IdPath$. 24 years ago
Peter Johnson 695ab62056 Whoa, oops! Bad bug in bytecode_new_common (wasn't returning allocated bc). 24 years ago
Peter Johnson 3c2a67ca1c Use bytecode * instead of bytecode in parser. 24 years ago
Peter Johnson 45df22d110 Convert to using gettext instead of the ugly errwarn constant strings. 24 years ago
Peter Johnson 86f7268ea8 Add RCSID(). 24 years ago
Peter Johnson 77fc6dd491 Standardize order of include statements as well as autoconf'ing those source 24 years ago
Peter Johnson ae600ce442 Use STAILQ's for datavals and bytecodes. 24 years ago
Peter Johnson edf74fe9ea Run through GNU indent using indent profile. Manually fix some changes 24 years ago
Peter Johnson 50cd4f238f Add global filename variable and handling for a filename passed on the 24 years ago
Peter Johnson 1fa31332b6 Add lexing, parsing, and internal format for strings and character constants. 24 years ago
Peter Johnson bb595a8f02 Formatting changes and starting to comment more heavily. 24 years ago