Eric Scharff
b3891debb2
Fixes build for Mac OS X.
...
If the binary is stripped on Mac OS X, dlsym fails, so builtin native library
calls do not work. The solution, in this case, is to not strip the binary.
2007-10-30 16:22:53 -06:00
Joel Dice
956106f518
implement StringBuilder.delete() more efficiently
2007-10-29 15:40:05 -06:00
Joel Dice
7aecdb6ce0
undo accidentally-committed makefile change
2007-10-28 18:54:21 -06:00
Joel Dice
a80677d673
fix aliasing warnings
2007-10-28 18:51:38 -06:00
Joel Dice
7f1837fecd
move fixed object (mark and sweep) support into heap.cpp and refine algorithms for determining when and how much to GC
2007-10-28 13:14:53 -06:00
Joel Dice
60072b9fdc
implement fixed object support
2007-10-27 19:54:30 -06:00
Eric Scharff
8f604ca7e1
makefile cleanups
2007-10-26 16:16:47 -06:00
Eric Scharff
789cc8e9a2
On the Mac, building in the vm object is complicated. Instead,
...
rely on external files.
2007-10-26 16:10:12 -06:00
Joel Dice
476a0d70f2
Merge branch 'master' of dice:git/vm
...
Conflicts:
makefile
2007-10-26 15:03:53 -06:00
Joel Dice
f354abb4a0
build fixes and refactoring
2007-10-26 15:02:39 -06:00
Eric Scharff
e2ae3201f7
Fix for mac's lacking objcopy - rely on the version in MacPorts
2007-10-26 13:43:14 -06:00
Eric Scharff
4088387cf0
Fix typo in makefile - path must be specified to find
2007-10-26 13:32:19 -06:00
Joel Dice
ccdc7fdda3
eliminate bin2c and use objcopy instead to translate binary data to an object file
2007-10-26 11:38:36 -06:00
Joel Dice
d0089c4d88
makefile fixes
2007-10-26 08:34:54 -06:00
Joel Dice
448d48adc9
superficial makefile tweak
2007-10-25 18:03:26 -06:00
Joel Dice
20cc788fa4
support classloading from jar files compiled into the executable
2007-10-25 16:06:05 -06:00
Joel Dice
b12b779c7f
add support for passing properties to the VM via JNI; use vm.builtins property to specify builtin libraries
2007-10-25 12:33:43 -06:00
Joel Dice
2de0decfe3
Merge branch 'master' of dice:git/vm
...
Conflicts:
src/interpret.cpp
2007-10-25 09:05:24 -06:00
Joel Dice
1c90ea5fd6
rewrite main.cpp to use jni.h interface for creating the VM and invoking the main method of the specified class
2007-10-25 09:04:13 -06:00
Eric Scharff
b91307224d
Fixed broken mac commit
2007-10-25 09:03:24 -06:00
Eric Scharff
5131cac38a
Fix regression for non Mac OS X platforms linking in archives
2007-10-25 08:58:44 -06:00
Eric Scharff
782f7e8feb
Fixes build parameters for Mac
2007-10-25 08:55:48 -06:00
Joel Dice
eaf1d205cd
more windows port fixes
2007-10-24 11:24:19 -06:00
Joel Dice
75b79e133e
use /usr/local/win32 include and lib directories in makefile when cross-compiling for windows
2007-10-24 09:46:44 -06:00
Joel Dice
4dfcaa0f91
build standalone executable (no seperate .so) on all platforms; build libvm.a too
2007-10-23 17:23:55 -06:00
Joel Dice
c686d1ca60
add -k to dlltool command
2007-10-23 14:18:42 -06:00
Joel Dice
eb4cea6291
more work on the windows port; we now have some tests passing
2007-10-23 14:05:59 -06:00
Joel Dice
1381267e70
mork work on the windows port
2007-10-23 11:22:48 -06:00
Joel Dice
58dec050c8
sketch of windows port
2007-10-22 19:00:57 -06:00
Joel Dice
ac4b28ffe6
refactor build system to support cross-compiling
2007-10-22 14:56:27 -06:00
Joel Dice
5fb1495f4d
bugfixes and new instructions in compile.cpp
2007-10-16 19:21:35 -06:00
Joel Dice
96ed27c55c
various bugfixes to get Tree.java to work
2007-10-16 11:21:26 -06:00
Joel Dice
5f6258045e
implement various floating point instructions; fix Floats.java to actually test something
2007-10-15 13:12:38 -06:00
Joel Dice
5c99edd90e
fix many JIT GC bugs; GC.java now passes
2007-10-13 15:48:40 -06:00
Joel Dice
7e0731ebdd
various bugfixes involving longs
2007-10-08 17:13:55 -06:00
Eric Scharff
673aec28fb
The warning -Wold-style-cast turns out to be more trouble than its worth
...
when dealing with old-style casts that are in header files. Removing.
2007-10-08 13:29:40 -06:00
Joel Dice
404d996c1e
snapshot
2007-10-03 18:41:54 -06:00
Joel Dice
68e382ca8d
snapshot
2007-10-01 18:08:17 -06:00
Joel Dice
7ecb5b9c30
fixes for various recent regressions
2007-09-30 10:32:17 -06:00
Joel Dice
569cfa9e07
implement more instructions; various bugfixes
2007-09-29 14:24:14 -06:00
Joel Dice
79603e284d
sketch of Compiler.compileNative() and ifnull instruction implementation
2007-09-28 17:41:03 -06:00
Joel Dice
f1bdc4c745
various fixes to get JIT working on x86_64
2007-09-26 18:01:38 -06:00
Joel Dice
2f3f97d550
clean up compile.cpp and support both x86_64 and i386; further refactoring to support JIT
2007-09-26 17:23:03 -06:00
Joel Dice
1207989f72
fix build and runtime bugs introduced in last commit
2007-09-26 08:43:40 -06:00
Joel Dice
e7c8fb645a
JIT works for Instructions.java
2007-09-25 17:53:11 -06:00
Joel Dice
1c90708abf
bugfixes for recent refactoring effort
2007-09-24 07:46:48 -06:00
Joel Dice
8d983c8a39
refactoring effort to pave the way for JIT compilation
2007-09-23 19:39:03 -06:00
Joel Dice
65a3ee4277
superficial tweaks
2007-09-21 08:16:43 -06:00
Eric Scharff
36f1d3206e
The proper extension for Mac JNI libraries is .jnilib. Hard-coded constants
...
have been factored to common locations. Furthermore, the LD_LIBRARY_PATH
environment variable is DYLD_LIBRARY_PATH on Mac OS X.
2007-09-20 10:13:41 -06:00
Eric Scharff
f430f3f00e
Various fixes (mostly making things more strict) to get the code to
...
compile on Mac OS X
2007-09-19 10:22:19 -06:00