blob: 1be1a6340aebbd4a59d1d428f0c393f49e67cd8f [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001Dalvik Virtual Machine
2
3
4Source code rules of the road:
5
6- All externally-visible function names must start with "dvm" to avoid
7namespace clashes. Use static functions when possible.
8
9- Do not create static variables (globally or locally). Do not create
10global variables. Keep everything with non-local lifespan in "gDvm",
11defined in Globals.h, so that all global VM state is in one place.
12
13- Use "startup" and "shutdown" functions to clean up gDvm. The VM must
14exit cleanly in valgrind.
15
16- The primary target is ARM Linux. Others are secondary, but must still
17work correctly.
18
19- Use of gcc-specific and C99 constructs is allowed.