Commit graph

  • 7cec815530 Don't allocate args when instruction parsing fails scan-build-fixes Jeff Epler 2018-03-17 14:02:50 -0500
  • 523a88ad3a Free memory in exit paths Jeff Epler 2018-03-17 14:00:36 -0500
  • 110a02f9b5 Delete dead code Jeff Epler 2018-03-17 13:48:25 -0500
  • 75f2a1e43e Move definition of tvm_opcode_map, tvm_register_map out of header Jeff Epler 2018-03-17 13:46:24 -0500
  • 5ea1ddc5e2
    Merge pull request #32 from eldev/master master rad/master Joseph Kogut 2017-10-28 10:11:38 -0700
  • 1911acb84f tvm_vm_create(): fix possible NULL pointer dereferencing. Adygzhy Ondar 2017-10-27 00:22:36 +0300
  • d7d74e6999 tvm_vm_create(): filename parameter is removed. Adygzhy Ondar 2017-10-27 00:05:14 +0300
  • a652f7219f Link with mlibc in freestanding mode Joseph Kogut 2017-02-12 15:42:41 -0800
  • a8d1190b31 add mlibc submodule Joseph Kogut 2017-02-12 15:41:23 -0800
  • 95cb5ae77a tvm_parse_args(): fix double free Joseph Kogut 2017-02-12 12:06:20 -0800
  • a6fe0cdd65 tvm_prog_destroy(): check arg buckets before free Joseph Kogut 2017-02-12 12:01:16 -0800
  • 7e23e632b6 tvm_parse_program(): initialize instr_place Joseph Kogut 2017-02-12 11:56:27 -0800
  • 488b88f867 tvm_preprocess: update *src after (re)allocating memory Joseph Kogut 2017-02-12 11:51:06 -0800
  • b6ffbd9a4e tvm_step: use double pointer to args array Joseph Kogut 2017-02-12 11:38:01 -0800
  • d054ae9467 Create flag to compile in freestanding mode Joseph Kogut 2017-02-12 11:36:35 -0800
  • ca87b3c5e9 Refactor with a consistent coding style Joseph Kogut 2016-08-28 20:31:12 -0700
  • a4c540f5a0 Merge pull request #30 from ryanpcmcquen/patch-1 Joseph 2015-02-21 18:27:33 -0700
  • d9fb3065f2 Remove trailing slash from INSTALL_PREFIX Ryan P.C. McQuen 2015-02-21 09:01:00 -0800
  • 9872f64348 Merge pull request #29 from tekknolagi/master Joseph 2014-10-14 23:47:54 -0700
  • de3a679576 no need for gotos... Max Bernstein 2014-08-01 18:19:24 +0200
  • 2c66bad7ab Changed default CC to Clang Joseph Kogut 2014-06-08 16:49:26 -0700
  • ca762c48ad Merge branch 'master' of https://github.com/jakogut/tinyvm Joseph Kogut 2014-06-08 16:38:38 -0700
  • 2f2d89c4fe Added item to TODO Joseph Kogut 2014-06-08 16:38:13 -0700
  • 1480d046b9 Make it mildly more difficult for spammers to find me Joseph 2014-03-24 14:39:53 -0700
  • da5ba2816d Added contact information to README Joseph 2014-03-24 14:25:34 -0700
  • 3b5cbac25b Merge pull request #28 from PaytonTurnage/master bl0ckeduser 2014-01-19 14:06:38 -0800
  • daa02f5082 Fix bug where an outdate node is returned. Payton Turnage 2014-01-14 20:54:31 -0500
  • 584217a142 Modify htab_add to have a generic core. Payton Turnage 2014-01-14 20:03:41 -0500
  • ae63e45c65 Rename htab functions; rewrite find to be generic. Payton Turnage 2014-01-14 19:09:35 -0500
  • abea0981ae Merge pull request #27 from PaytonTurnage/master Joseph 2014-01-14 07:40:33 -0800
  • 27a090e704 Remove assumption that node is in the bottom of the bucket. Payton Turnage 2014-01-14 00:51:42 -0500
  • e6d9d92d8c Do not write a value for strings in htab. Payton Turnage 2014-01-13 13:50:56 -0500
  • d945c9a3f6 Add a new function to return strings from htab. Payton Turnage 2014-01-13 11:31:58 -0500
  • aa57b007c7 Make sure strings are moved into the rehash. Payton Turnage 2014-01-13 11:16:00 -0500
  • 7bea39a6b5 Add preprocessor directives to the SYNTAX file. Payton Turnage 2014-01-13 11:07:16 -0500
  • e99a0428f3 Implement defines using the htab structure. Payton Turnage 2014-01-13 10:20:21 -0500
  • ed12ce05db Remove all traces of the tvm_tree structure. Payton Turnage 2014-01-13 09:45:27 -0500
  • b208237960 Allow the preprocessor to abort. Payton Turnage 2014-01-12 21:56:54 -0500
  • 27cde3f429 Warn on redefining. Payton Turnage 2014-01-12 21:53:03 -0500
  • d152751cf8 Free the defines memory earlier. Payton Turnage 2014-01-12 21:49:17 -0500
  • c80d6974cb Substitute defines with their strings. Payton Turnage 2014-01-12 21:43:57 -0500
  • 23e72a8ca7 Implement preprocessor defines. Payton Turnage 2014-01-12 21:11:31 -0500
  • 9c9eece4d9 Fix naming conflict. Payton Turnage 2014-01-12 21:04:56 -0500
  • 58f11eba57 Enable keeping track of associated values. Payton Turnage 2014-01-12 20:30:04 -0500
  • 62066d614f Add a structure for searching strings. Payton Turnage 2014-01-12 20:00:20 -0500
  • 1d9659c507 Modified TODO Joseph Kogut 2014-01-11 15:52:49 -0700
  • 5719b3a265 Added TODO Joseph Kogut 2014-01-11 15:48:44 -0700
  • 07c32b9869 Simplify a structure copy bl0ckeduser 2013-08-12 18:43:17 -0400
  • 716936a8eb Fix incorrect truncation of floating-point data If the entire parenthesized division expression is cast to float, as it was prior to this commit, C performs truncating integer division before converting to float, which always leads to a result of zero. `git-blame' traces the bug to commit d5ed7e75d9, which added the faulty parentheses as a matter of style. No parentheses are necessary, since increments have higher precedence than type-casts, type-casts have higher precedence than division, and division has higher precedence than comparison. The operations will execute in the desired order. bl0ckeduser 2013-08-12 18:33:08 -0400
  • 6ca1ec8b05 Added prime sieve example program Joseph Kogut 2013-03-13 17:59:06 -0700
  • f60fb720b6 Fixed filename typo Joseph Kogut 2013-03-07 14:42:53 -0700
  • d5ed7e75d9 * Replaced all instances of malloc with calloc Joseph Kogut 2013-03-07 12:19:03 -0700
  • 378cc66c0d Removed a dumbass goto. Joseph Kogut 2013-02-08 20:16:12 -0700
  • 9be63e849d * Updated SYNTAX to include preprocessor directives Joseph Kogut 2013-02-08 14:15:36 -0700
  • 21198a8282 Added preprocessor Joseph Kogut 2013-02-08 13:51:01 -0700
  • 7f753d0954 Fixed incorrect path PROF_ARGS used by build target "profile" Joseph Kogut 2013-02-07 10:57:52 -0700
  • eac3bc4291 *Split parsing functions into their own source files Joseph Kogut 2013-02-07 10:54:22 -0700
  • cc39eadc9e Fixed typo in tvm_program.c Joseph Kogut 2013-02-07 10:13:15 -0700
  • e1a6ae6188 Merge branch 'master' of https://github.com/GenTiradentes/tinyvm Joseph Kogut 2013-02-06 11:48:12 -0700
  • 25cc724b33 *Updated variable declarations and definitions to C99 standard Joseph Kogut 2013-02-06 11:47:13 -0700
  • eb5b168fe7 Merge pull request #24 from bl0ckeduser/fix-tdb Joseph 2013-01-28 19:02:38 -0800
  • 9f563a7cb3 Patch tdb to compile with the new Makefile and gcc 4.6.3 bl0ckeduser 2013-01-28 21:03:23 -0500
  • c11e5bccfa Made pointer syntax in TDB more consistent. Joseph Kogut 2013-01-25 13:05:51 -0700
  • 451ff4df8e Moved example tvm programs to programs/tinyvm. Joseph Kogut 2013-01-25 11:40:26 -0700
  • 3d895e0948 Made hash table naming conventions more consistent Joseph Kogut 2013-01-24 10:42:40 -0700
  • 2f328be48c Merge branch 'master' of https://github.com/GenTiradentes/tinyvm Joseph Kogut 2013-01-24 10:34:56 -0700
  • 885ddc1ff4 Added example program euler1_nodiv.c Joseph Kogut 2013-01-24 10:34:25 -0700
  • 4d0fc4b0df Fixed link to attribution for the algorithm used in example euler1_nodiv.vm Joseph Kogut 2013-01-24 00:28:56 -0700
  • ed3acfd515 Made naming conventions more consistent. Joseph Kogut 2013-01-23 11:15:07 -0700
  • d270cc5706 Made pointer syntax consistent Joseph Kogut 2013-01-23 11:06:19 -0700
  • caf4767696 Inlined tvm_step() and htab_hash(). Joseph Kogut 2013-01-23 10:41:17 -0700
  • da125c39e2 * Fixed occasional race condition with parallel make of target "rebuild" Joseph Kogut 2013-01-20 15:47:45 -0700
  • 86c01acd8c Switched to C99 standard Joseph Kogut 2013-01-20 14:14:35 -0700
  • e57368df3e Create LICENSE Joseph 2013-01-15 08:43:43 -0800
  • 6c50160728 Forget branches. TVM is supposed to be small and simple. Joseph Kogut 2012-03-30 11:44:36 -0700
  • cc3045a643 Merge pull request #21 from bl0ckeduser/master Joseph 2012-01-23 20:07:28 -0800
  • bc882e4db3 Hash table: implement load factor / rehash Bl0ckeduser 2012-01-19 17:22:41 -0500
  • e0a387d7de Fix hash collisions (separate chaining) Bl0ckeduser 2012-01-18 12:54:23 -0500
  • 9771115a76 Merge pull request #20 from kk-/master Joseph 2012-01-15 22:41:10 -0800
  • 279bdc61c1 changed lexer tab characters to use an escaped tab (\t) Kyle K 2012-01-16 02:05:04 +0000
  • 71901e4ad5 Merge pull request #19 from bl0ckeduser/master Joseph 2011-12-08 19:14:43 -0800
  • d6879ced11 Improve, debug, document tdb Bl0ckeduser 2011-12-07 15:55:22 -0500
  • f3f917350f Merge pull request #18 from bl0ckeduser/patch-1 Joseph 2011-11-20 19:51:21 -0800
  • 313a440342 Implement buffer size limit in tvm_fcopy Bl0ckeduser 2011-11-20 21:36:36 -0500
  • c1d5d35c27 Shorten tvm_flength, tvm_fcopy bl0ckeduser 2011-11-20 21:10:50 -0500
  • b0847a128f Created src directory Joseph Kogut 2011-11-15 05:17:41 -0700
  • 19ec55c301 Fixed comment mix up Joseph Kogut 2011-10-07 13:14:47 -0700
  • 4f4d9d1044 Merge pull request #17 from bl0ckeduser/master Joseph 2011-10-07 19:27:00 -0700
  • 5f669a78ce Add recursive factorial bl0ckeduser 2011-10-07 17:55:18 -0400
  • fcd0a1f7e2 Fix bug in "ret" opcode bl0ckeduser 2011-10-07 14:38:18 -0400
  • ea610836cd Added solution to Project Euler problem number 7 Joseph Kogut 2011-10-02 18:06:47 -0700
  • a3c207d63d Merge pull request #16 from bl0ckeduser/master Joseph 2011-09-28 22:05:52 -0700
  • ba1f6ce765 Add simple prime-listing program Bl0ckeduser 2011-09-28 21:25:11 -0400
  • 19a48f04ee Moved memory allocation for new instructions into tvm_program.c, parse_instructions() Joseph Kogut 2011-09-26 03:09:15 -0700
  • 8cd840e1c7 Merge pull request #15 from bl0ckeduser/master Joseph 2011-09-26 09:12:20 -0700
  • d9e3f942f5 Safety-check free()s in destroy_program Bl0ckeduser 2011-09-25 15:35:03 -0400
  • 72193566b9 Moved program interpretation to explicitly called function Joseph Kogut 2011-09-25 05:47:31 -0700
  • af7224085e Merge branch 'master' of github.com:/GenTiradentes/tinyvm Joseph Kogut 2011-09-08 09:46:42 -0700
  • 6fb039da4a Refactored parsing of register tokens Joseph Kogut 2011-09-08 09:43:45 -0700
  • 93adee0535 Merge pull request #14 from bl0ckeduser/master Joseph 2011-09-07 07:40:13 -0700