That does require some interpretation

I very much enjoyed this post on implementing fast interpreters and its follow up. An interpreter executing an integer ADD instruction  is a classic example of code where the overhead to get to the operation itself is much greater than the cost of the operation that is being implemented. The classic technique to avoid handle this, and the most effective optimisation of a VM runtime like HotSpot, is inlining, which the post mentions.

The follow up post has a pointer to this thesis which is an interesting read on the subject. Sometimes it is just too much work to write a compiler, and this thesis gives a number of straightforward techniques for getting good performance.

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s