Tuesday, October 28, 2014

(4) Recently we said about creating virtual machine.... - Cybercells tricks

Recently we said about creating virtual machine. Today we explained its first part A set of registers. Note:- If you don't see our previous post then see here https://m.facebook.com/story.php… The registers of the Java Virtual Machine are similar to the registers in our computer. However, because the Virtual Machine is stack based, its registers are not used for passing or receiving arguments. In Java, registers hold the machine's state, and are updated after each line of byte code is executed, to maintain that state. The following four registers hold the state of the virtual machine: frame, the reference frame, and contains a pointer to the execution environment of the current method. optop, the operand top, and contains a pointer to the top of the operand stack, and is used to evaluate arithmetic expressions. pc, the program counter, and contains the address of the next byte code to be executed. vars, the variable register, and contains a pointer to local variables. All these registers are 32 bits wide, and are allocated immediately. This is possible because the compiler knows the size of the local variables and the operand stack, and because the interpreter knows the size of the execution environment. ‪#‎DON‬

0 comments:

Post a Comment

Welcome to my Blog!
Bine ati venit pe blogul nostru.
Cand nu sunt pe blog calatorim!!!
When I'm not blogging, I'm traveling :-)

Email me atGuran

Search

Subscribeto this blog
Follow me onTwitter
Connect onFacebook
My Ello

Blogroll


© 2014 by Guran Cosmin.

You're welcome to link to this site or use a single image and brief description to link back to any post. Republishing posts in their entirety is prohibited without permission.

Pictures

Become a Fan

Find Us On Facebook

Contact Form

Name

Email *

Message *

Video

720x90 AdSpace

Recent Videos

Movie

http://youtu.be/Yj0G5UdBJZw
guran. Powered by Blogger.

Wikipedia

Search results

Popular Posts

Followers

Archive

wikiHow - Recent Changes [en]