June 15, 2004

The Workings of the J2ME StackMap

Posted at June 15, 2004 08:38 AM in J2ME .

Find out how the J2ME StackMap works in this short article.

On J2ME classes, we do pre-verification on the class files, storing information in a stack map about the local variable array and operand stack. We only need to store information in the stack map when there is a conditional statement or exception within the byte-code. Thus, the KVM uses a lot less memory than the typical JVM during Pass 3 verification because the KVM does a linear scan of the byte-code, relying on the stack map for all of the branches.

How the J2ME StackMap Works

Trackback

You can ping this entry by using http://www.mamlambo.com/mt/mt-tb.cgi/196 .

Comments

Post a comment










Remember personal info?