The Artima Developer Community
Sponsored Link

Java Answers Forum
Using Java Operand Stack

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ashish

Posts: 1
Nickname: ashisharte
Registered: Oct, 2002

Using Java Operand Stack Posted: Oct 3, 2002 5:46 PM
Reply to this message Reply
Advertisement
Hi all,
I am developing a specialized Compiler that outputs optimized Java classes.
One way of reducing the size of the bytecodes is to reduce the data transfers between local variables ( 3 and up) and the operand stack. ie. keep the temporary or intermediate data on the stack and not transfer it to local variables. This definitely reduces the size of class files. So I was expecting an improved performance. Instead of performance improvement, I observed that the performance actually degrades.

I could not find any documentation which explains this behavior of JVM.

I have read the JVM spec, but could not find the reason there.

Can anybody give me explaination to why this happens ?

-Ashish

Topic: Please help me..none of my class work Previous Topic   Next Topic Topic: Cannot assign requested address: Cannot bind

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use