No description
Find a file
Jeff Epler 7cec815530 Don't allocate args when instruction parsing fails
.. it looks like (opcode == -1) should maybe lead to an error return
rather than a continue, but in any case we need to avoid leaking
'args' in this situation.

.. the previous arrangement lead to compiler diagnostics when
building with 'scan-build make', such as:

libtvm/tvm_parser.c:186:39: warning: Potential leak of memory pointed to by 'args'
        for (line_idx = 0; tokens[line_idx]; line_idx++) {
                                             ^~~~~~~~
1 warning generated.
2018-03-17 14:02:50 -05:00
bin Updated .gitignore 2011-09-04 06:04:00 -07:00
include/tvm Move definition of tvm_opcode_map, tvm_register_map out of header 2018-03-17 13:46:24 -05:00
lib Updated .gitignore 2011-09-04 06:04:00 -07:00
libtvm Don't allocate args when instruction parsing fails 2018-03-17 14:02:50 -05:00
mlibc@abfeae4b1a add mlibc submodule 2017-02-12 15:41:23 -08:00
programs Substitute defines with their strings. 2014-01-12 21:43:57 -05:00
src Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tdb Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
.gitignore Updated .gitignore 2011-09-04 06:04:00 -07:00
.gitmodules add mlibc submodule 2017-02-12 15:41:23 -08:00
GNUmakefile Link with mlibc in freestanding mode 2017-02-12 15:42:41 -08:00
LICENSE Create LICENSE 2013-01-15 08:43:43 -08:00
README Added contact information to README 2014-03-24 14:25:34 -07:00
SYNTAX Add preprocessor directives to the SYNTAX file. 2014-01-13 11:08:12 -05:00
TODO Merge branch 'master' of https://github.com/jakogut/tinyvm 2014-06-08 16:38:38 -07:00

TinyVM is a virtual machine with the goal of having a small footprint.
Low memory usage, a small amount of code, and a small binary.

Building can be accomplished on UNIX-like systems with make and GCC.

There are no external dependencies, save the C standard library.

Building can be accomplished using "make," or "make rebuild".

To build a debug version, add "DEBUG=yes" after "make". To build a binary with
profiling enabled, add "PROFILE=yes" after "make".

I can be reached at "joseph.kogut(at)gmail.com"