forked from rubinius/rubinius
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
46 lines (27 loc) · 966 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
VM: a C++ VM for running ruby code
------------------------------------
(Could probably use a better name than VM)
Prerequisites
---------------
* LLVM 2.3 or later, http://llvm.org
Building
----------
You should be in the vm directory for all of these.
`rake build`
Running
---------
For now, just run the tests.
Tests and Specs
-----------------
* `rake test` builds and runs all of the tests in test/test_*
* `rake coverage` runs the tests as above and then generates
a coverage report based on those in coverage/index.html.
Notes
-------
* Classes defined in builtin/*.hpp are C++ classes mapped directly to ruby
objects.
* Because of the previous point, NO virtual functions are allowed in these
classes. C++ inserts a pointer into every object which has virtual functions
and we must have complete control over the body of an object.
* Similarly, only use single inheritance. This keeps the order of data
members consistent.