Is it possible to write a program in Java and then view the assembly language code of this program?
Is it possible to write a program in Java and then view the assembly language code of this program?
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?
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!
and the assembly would depend on the processor / stepping, which in turn would be converted into microcode.
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.
Social Networking Bookmarks