jakogut/tinyvm
View on GitHub ↗ ★ 3,330 C
TinyVM is a small, fast, lightweight virtual machine written in pure ANSI C.
10 mentions on Hacker News by 9 people: 3 stories, 7 comments · first 2011-07-02 · latest 2018-03-18
20082026
-
Here's the switch statement, if you're looking for it: https://github.com/jakogut/tinyvm/blob/master/include/tvm/tv...
comment by peterkelly · 2018-03-18 · in TinyVM – A small and easy to understand virtual machine in C -
I'm kind of worried about usage of strcmp here: https://github.com/jakogut/tinyvm/search?q=strcmp It's also very easy to crash the thing, either with a malformed input file or afl-fuzz. Are you sure C was the right choice here?
comment by d33 · 2018-03-17 · in TinyVM – A small and easy to understand virtual machine in C -
I’ve found that switch fast, in a few clicks, reading this on my phone: https://github.com/jakogut/tinyvm/blob/master/include/tvm/tv... I’ve used the info you provided as the start, of course.
comment by acqq · 2018-03-17 · in TinyVM – A small and easy to understand virtual machine in C -
…with around, say, 2^5 instructions. What I have in mind here is something like TinyVM [1]. [1] https://github.com/GenTiradentes/tinyvm
comment by javert · 2011-09-05 · in The Immutable Laws of Computer Security -
…direct, and in the second, you seem to be assuming that JMP is indirect. It appears to be direct: https://github.com/GenTiradentes/tinyvm/blob/master/tvm.c#L5... You could, of course, do it with self-modifying code if that's possible. (I'm…
comment by kragen · 2011-07-04 · in TinyVM: A lightweight, fast virtual machine in < 500 lines of ANSI C -
…in half an hour of looking at the code, I found seven bugs in a single 60-line routine. Details at: https://github.com/GenTiradentes/tinyvm/commit/e78c192313c35...
comment by kragen · 2011-07-04 · in TinyVM: A lightweight, fast virtual machine in < 500 lines of ANSI C -
check the commit message: https://github.com/GenTiradentes/tinyvm/commit/35c2fdbdabc63...
comment by phektus · 2011-07-03 · in TinyVM: A lightweight, fast virtual machine in < 500 lines of ANSI C