Re: java assembler??

Roderick Bloem <roderick.bloem@ist.tu-graz.ac.at>
30 Apr 2005 15:42:49 -0400

          From comp.compilers

Related articles
java assembler?? malinda.fernando@gmail.com (malinda) (2005-04-30)
Re: java assembler?? roderick.bloem@ist.tu-graz.ac.at (Roderick Bloem) (2005-04-30)
| List of all articles for this month |

From: Roderick Bloem <roderick.bloem@ist.tu-graz.ac.at>
Newsgroups: comp.compilers
Date: 30 Apr 2005 15:42:49 -0400
Organization: Compilers Central
References: 05-04-103
Keywords: Java, tools
Posted-Date: 30 Apr 2005 15:42:49 EDT

Have a look at the following set of tools:


http://jasmin.sourceforge.net - converts ascii version of byte code to a
class file


http://www.neilvandyke.org/jasmin-emacs/ - Emacs plugin for Jasmin, with
syntax highlighting


http://www.angelfire.com/tx4/cus/jasper/ - Jasper converts class files
to Jasmin


http://jakarta.apache.org/bcel/index.html - Bcel contains a byte-code
verifier that produces readable error messages.


and perhaps http://mindprod.com/jgloss/disassembler.html - Some more
java disassemblers


The tools don't quite use the syntax you use, I think, but they work
like a charme. We used them last year in a compiler construction class.


The students produced a Pascal compiler that produced the Jasmin ascii
form of byte code. They used Jasmin to compile that to class files.
Doing that, we obviously needed tools to see what the Java compiler
does, to change that, and to recompile the result. Bcel is very
useful as it gives you better error messages for incorrect byte code.


Hope that helps,


Roderick


malinda wrote:
> basicaly I want to get the output of "Hello World" by giving the
> below byte code instructions to the JVM (what I need to do is that
> assemble the byte code which was disassembled and make it to the
> .class format so I can run the above programme through JVM ) ...


> If somebodyt know about a java tool I can use to assemble the code
> wich i disassembled please advice me!!!!



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.