
SimpleJVM
rockieyungn
这个作者很懒,什么都没留下…
展开
-
Restore VM work
A friend ask me to implement a simple JVM few days before. I was quite interesting at this area half year before. A JVM was almost implemented except multiple thread feature. It was just did not work ...2008-11-22 05:47:31 · 452 阅读 · 0 评论 -
Dec 8, java.lang.String, etc
implement some function of string. correct multi array bugs. add simple memory monitor feature.2008-12-09 06:19:54 · 99 阅读 · 0 评论 -
Dec 10, Be careful use string append
I was implmenting string append feature in my simple VM. I find that when there are string append in JAVA code. The binary codes generated are not the same as I thought. I use a simple test to tes...2008-12-11 05:54:17 · 108 阅读 · 0 评论 -
Dec 11, Implement a simple GUI use win32
Implement a simple GUI use win32 api. But it can not run with mingw even I use "g++ -mwindows". So I use VC2008 ran it. The first GUI looks like following picture. When a mouse down event happen...2008-12-12 06:21:59 · 120 阅读 · 0 评论 -
String performance test
I found string plus using StringBuffer but not StringBuilder when I was implementing my simple JVM. So I wrote some test case to test it. But it became using StringBuilder but not StringBuffer. So I g...2008-12-14 16:05:04 · 130 阅读 · 0 评论 -
Library Usage Analyzer
Since I am writing a simple JVM. Most part of JVM work is implement libraries. But it is impossible for me to implement all classes specified in JDK. So I need analyze which classes in JDK are most po...2008-12-14 16:50:34 · 133 阅读 · 0 评论 -
Dec 16, field access for multiple layers class
Implement field access for multiple layers class. public class TestFieldClassBase { int instanceBase; static float staticBase; } public class TestFieldClassDerived extends TestFieldClassBa...2008-12-16 07:01:57 · 100 阅读 · 0 评论 -
Dec, Improve GC
Garbage collecting for reference create by new instructions need to be released. The information need be record down when invoking a method. How many memory need for store the information was just har...2008-12-17 02:57:16 · 101 阅读 · 0 评论 -
JDK library usage analyze.
I analyzed some jar files. I want know how much they using JDK. The jar files totally is 200M which contain quite lot of jars, like jboss, glassfish, spring, junit, apache. Jar files analyzed, stati...2008-12-17 04:19:51 · 145 阅读 · 0 评论 -
refactor reference types
refactor implementation for reference types to make it compatible with super types.2008-12-20 05:44:33 · 111 阅读 · 0 评论 -
Dec 7, GC loop, logic, multi array, exception
finished GC for loop logic(do, do while, for) finished GC for if logic(if, if else, if else if) finished GC for witch logic(tableswitch and lookupswith) finished GC for multi array(2 dimension o...2008-12-07 18:40:40 · 102 阅读 · 0 评论 -
Dec 6, implement field instructions
implement field instructions include instance field and static field instructions. 64 bits field feature is not finished. GC for field is also finished.2008-12-07 06:07:44 · 110 阅读 · 0 评论 -
Nov 24 java class files for test change method
The java class files for test code in C is wrote in Java, then copy to C project path. This method was not good since it need two steps. So I changed to directly use files in Java project class path. ...2008-11-25 05:05:36 · 98 阅读 · 0 评论 -
Nov 25 implement JNI parameters.
Implement all built in generic type JNI parameters except long and double. Multiple parameters and complex parameters are to be implemented.2008-11-26 05:27:58 · 83 阅读 · 0 评论 -
Nov 30 implement JNI Array
Implement a char array print through JNI call. Native method interface /** * native method type * @param params : input and output * @return : > 0 n output has stored into params * ...2008-11-30 23:08:40 · 120 阅读 · 0 评论 -
Dec 1,implement constant string and JNI invocation
implement constant string and JNI invocation Current implmentation for bcode ldc for constant string create a object each time. The object only store string's size and the pointer.2008-12-02 02:55:43 · 94 阅读 · 0 评论 -
Dec 1, implement branch logic
Branch feature was almost implemented before. I felt quite long this evening. After implemented the JNI string feature, I spent 2 hours to implement it. It was not so difficult. So I finished although...2008-12-02 06:08:41 · 83 阅读 · 0 评论 -
Dec 2 implement loop, return, arithmetic
implemented all loop instructions. implemented return instructions for 32bits types. return instructions for 64 bits type and reference type to be implemented. implemented arithmetic instructions ...2008-12-03 04:59:38 · 79 阅读 · 0 评论 -
Dec 3, method invocation, multi array
implement method invocation define an interface named Interface which contains one method named test. class Base implement the Interface. Base also implement the interface method. class Derived ext...2008-12-04 02:31:25 · 116 阅读 · 0 评论 -
Dec 4, implement simple GC for new and newarray
implement simple GC for new and newarray public class TestGCNew { /** * @param args */ public static void main(String[] args) { int object_count = Memory.getObjectCount(); testNewObject()...2008-12-05 07:00:45 · 107 阅读 · 0 评论 -
Dec 5, implement gc for locals and arrays
implement gc for local vars. The test code is very similar with the test code yesterday. only add one more statement. private static void testNewRawArray() { int[] ia = new int[1]; int[] ib =...2008-12-06 03:57:09 · 91 阅读 · 0 评论 -
Implement Hash table
I went to German in XMas holidays. So the feature did not finished until tonight. I was shocked by hash algorithm again when I was implemented it. It is very simple and unbelivable powerful. I got s...2009-01-04 07:48:47 · 163 阅读 · 0 评论