Close

Results 1 to 5 of 5
  1. #1
    DF VIP Member OrangeJuicey's Avatar
    Join Date
    Aug 2006
    Location
    London
    Posts
    1,283
    Thanks
    1
    Thanked:        4
    Karma Level
    289

    Default Converting Java To Assembly language

    Is it possible to write a program in Java and then view the assembly language code of this program?

  2. #2
    DF VIP Member blacksheep's Avatar
    Join Date
    Jun 2006
    Location
    Manchester
    Posts
    3,877
    Thanks
    87
    Thanked:        265
    Karma Level
    546

    Default Re: Converting Java To Assembly language

    java gets compiled to byte code and then there is a virtual machine that interprets it so I doubt it very much.

    Why do you want the assembly code?

  3. #3
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Converting Java To Assembly language

    It's not possible to view assembly because as said above, java is compiled into bytecode and executed on a virtual machine, not compiled into machine code.
    There is however a tool called "javap" which will allow you to view the bytecode of your class files. But, it's not assembly!

  4. #4
    DF VIP Member eolair's Avatar
    Join Date
    Jun 2004
    Location
    Ireland
    Posts
    103
    Thanks
    0
    Thanked:        0
    Karma Level
    251

    Default Re: Converting Java To Assembly language

    and the assembly would depend on the processor / stepping, which in turn would be converted into microcode.

  5. #5
    DF VIP Member OrangeJuicey's Avatar
    Join Date
    Aug 2006
    Location
    London
    Posts
    1,283
    Thanks
    1
    Thanked:        4
    Karma Level
    289

    Default Re: Converting Java To Assembly language

    ok thanks, I need to learn assembly and I just thought may be there was a way of doing it.

    I'll tell you what the book is mighty hefty, now I wish i'd of gone with the haskell. I'm creating a programming language of my own for a uni project using haskell and assembly.

Similar Threads

  1. v4 ps2 power supply board & tray assembly
    By Robbie Vox in forum Buy, Sell and Trade
    Replies: 1
    Last Post: 8th October 2002, 11:51 AM
  2. Java console??
    By Jaffa in forum PC Problems
    Replies: 3
    Last Post: 26th September 2002, 02:14 AM
  3. Java Idea?
    By Roo in forum Unlocking Questions & Solutions
    Replies: 0
    Last Post: 8th September 2002, 06:55 PM
  4. Laptop language prob!!
    By hotentot in forum PC Problems
    Replies: 3
    Last Post: 6th September 2002, 01:57 AM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •