Re: How to generate optimized bytecode?

Discussion in 'Java' started by Roedy Green, Aug 28, 2003.

  1. Roedy Green

    Roedy Green Guest

    On Thu, 28 Aug 2003 00:33:27 GMT, Ahmed Moustafa
    <> wrote or quoted :

    >Which Java compiler (and what compilation options) would generate
    >optimized bytecode?


    See http://mindprod.com/jgloss/nativecompiler.html

    There is not much you can do with bytecode to optimise it. The real
    work happens at code generation time.

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Aug 28, 2003
    #1
    1. Advertising

  2. >>Which Java compiler (and what compilation options) would generate
    >>optimized bytecode?

    >
    >
    > See http://mindprod.com/jgloss/nativecompiler.html
    >
    > There is not much you can do with bytecode to optimise it. The real
    > work happens at code generation time.


    What is the code generation time? Is it the run time?
    Ahmed Moustafa, Aug 28, 2003
    #2
    1. Advertising

  3. Roedy Green

    Roedy Green Guest

    On Thu, 28 Aug 2003 03:57:37 GMT, Ahmed Moustafa
    <> wrote or quoted :

    >What is the code generation time? Is it the run time?


    It depends. Java has so many different ways of being run.

    With a native compiler such as Jet it happens just after you run
    Javac. see http://mindprod.com/jgloss/jet.html

    With a simple JIT it happen the first time to execute a method.

    with a Hotspot JIT, it happens a few times after you have executed a
    method.

    With an interpreter, it never happens. All you do is execute tiny
    methods to emulate each byte code instruction.

    See http://mindprod.com/jgloss/compiler.html

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Aug 28, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tulip

    area optimized port mapping

    tulip, Nov 3, 2004, in forum: VHDL
    Replies:
    1
    Views:
    484
    Nicolas Matringe
    Nov 3, 2004
  2. Replies:
    6
    Views:
    505
  3. E.C. Bäck
    Replies:
    1
    Views:
    350
    Roedy Green
    Aug 29, 2003
  4. Replies:
    4
    Views:
    304
  5. Hermann Lauer

    Optimized bytecode in exec statement

    Hermann Lauer, Feb 1, 2010, in forum: Python
    Replies:
    0
    Views:
    211
    Hermann Lauer
    Feb 1, 2010
Loading...

Share This Page