Java to Assembly?

Discussion in 'OT Technology' started by datboiwilly, Jan 31, 2005.

  1. datboiwilly

    datboiwilly OT Supporter

    Joined:
    Sep 18, 2002
    Messages:
    2,936
    Likes Received:
    0
    Location:
    Houston
    Is there such a thing? I would like to see everything that I'm doing in Java in assembly language.
     
  2. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    No. No such thing. Aside from the fact that the JVM runs your code, and not the processor... even if you wanted to go from C++->Assembly, you'd need a decompiler, and it would be so ugly that you couldn't understand it unless you were very good with assembly on that platform and had alot of time.

    You are a high level programmer. Forget about assembly.
     
  3. samm

    samm Next in Line

    Joined:
    Dec 22, 2000
    Messages:
    2,630
    Likes Received:
    0
    Location:
    San Jose, CA
    You can turn C++ code into assembly code easily. What do you think the compiler does?

    Give gcc the -S flag to generate assembly code, it will not invoke the assembler so you won't get any executable output.

    I don't know about Java, I suggest you read through the javac man pages.
     
  4. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    Okay, you're right about C. That was a dumb thing to say. :hsd:

    But Java runs through the Java Virtual Machine... its a big fat layer above assembly. Javac compiles into Java Bytecode, not assembly.
     
  5. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Took the words right out of my mouth.
     

Share This Page