summaryrefslogtreecommitdiffstats
path: root/vm/README.txt
blob: 1be1a6340aebbd4a59d1d428f0c393f49e67cd8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Dalvik Virtual Machine


Source code rules of the road:

- All externally-visible function names must start with "dvm" to avoid
namespace clashes.  Use static functions when possible.

- Do not create static variables (globally or locally).  Do not create
global variables.  Keep everything with non-local lifespan in "gDvm",
defined in Globals.h, so that all global VM state is in one place.

- Use "startup" and "shutdown" functions to clean up gDvm.  The VM must
exit cleanly in valgrind.

- The primary target is ARM Linux.  Others are secondary, but must still
work correctly.

- Use of gcc-specific and C99 constructs is allowed.