Underground - Maruf Maniruzzaman's programming blog

Sunday, August 8, 2010

Just In Time Compiler for Managed Platform: Problem with exception handling

›
So far we have generated code that is 100% equivallent to the methods byte code. But in case of exception this is a little problematic. Let ...

Just In Time Compiler for Managed Platform- Part 7: Native Methods

›
Execution of native methods are easiest of all methods :D. Since we dont need to generate anything for them - they are already native. We ...
Friday, August 6, 2010

Just In Time Compiler for Managed Platform- Part 6: Put Field and Get Field

›
Now we have our object on the heap. We need mechanism to putfield and getfield . The operation is very simple indeed. First we need a hel...
Thursday, August 5, 2010

Just In Time Compiler for Managed Platform- Part 5: Creating new object on heap

›
Lets create object on heap today. Since we have the object creation code in JavaClass it is very easy to create an object on the heap. We...
Tuesday, August 3, 2010

Just In Time Compiler for Managed Platform- : Why stack is implemented wrong?

›
Well, its not really wrong- its just efficient- The stack top is is always topvalue + 1. This is not right behaviour for stack usually- bu...
Monday, August 2, 2010

Just In Time Compiler for Managed Platform- Part 4A: Conditional Branch Correction

›
The Jxx instructions I used for branching was not working right- It treated values unsigned. The "IA-32 Intel Architecture Software Dev...
Friday, July 30, 2010

Just In Time Compiler for Managed Platform- Part 4: Basic Conditional Branch

›
Today I'll generate code that can handle conditional branch. This one is really gian step- since once we have conditional branching enab...
Tuesday, July 27, 2010

Just In Time Compiler for Managed Platform- Part 3: Call a method

›
Today I'll try to extend the simple JIT compiler to the point where we can call a method from another method. First lets create a simp...
Thursday, July 15, 2010

Just In Time Compiler for Managed Platform- Part 2: Generate native method

›
Today we'll design a small block of code that is equivallent to a corresponding java method. Since the generated native executable cod...
Saturday, July 10, 2010

Just In Time Compiler for Managed Platform- Part 1: Code Generation

›
First we need to generate executable code block. So let us write some code in C++. int add(int x, int y) { int r; r= x+y; ...
›
Home
View web version

About Me

MA
View my complete profile
Powered by Blogger.