Re: Need Information on how to create bytecode

=?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.Kahrs@vr-web.de>
9 Apr 2006 16:59:00 -0400

          From comp.compilers

Related articles
Need Information on how to create bytecode megavlad@gmail.com (megavlad@gmail) (2006-04-08)
Re: Need Information on how to create bytecode Juergen.Kahrs@vr-web.de (=?ISO-8859-1?Q?J=FCrgen_Kahrs?=) (2006-04-09)
Need Information on how to create bytecode ojh16@student.canterbury.ac.nz (Oliver Hunt) (2006-04-09)
Re: Need Information on how to create bytecode haberg@math.su.se (2006-04-09)
Re: Need Information on how to create bytecode Satyam@satyam.com.ar (Satyam) (2006-04-12)
Re: Need Information on how to create bytecode scavadini@ucse.edu.ar (2006-04-12)
Re: Need Information on how to create bytecode amedlock@gmail.com (DavidM) (2006-04-14)
Re: Need Information on how to create bytecode megavlad@gmail.com (megavlad@gmail) (2006-04-17)
[2 later articles]
| List of all articles for this month |
From: =?ISO-8859-1?Q?J=FCrgen_Kahrs?= <Juergen.Kahrs@vr-web.de>
Newsgroups: comp.compilers
Date: 9 Apr 2006 16:59:00 -0400
Organization: Compilers Central
References: 06-04-048
Keywords: interpreter, question, comment
Posted-Date: 09 Apr 2006 16:59:00 EDT

Sun's spec is actually quite precise:


    http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html


As usual, WikiPedia is also a good starting point. Here they present
a list of byte codes for the JVM mnemonics:


    http://en.wikipedia.org/wiki/Java_byte_code


The basic principle of P-Code is explained in an excellent article at
WikiPedia:


    http://en.wikipedia.org/wiki/P-Code_machine


Similar documents exist for .NET's CLR. You should find these on you
own. If it really takes you days to find them, there's something wrong
with the way you are searching.


[I suspect he was searching for info on bytecode design principles
rather than on the spec for various existing bytecodes. It's a good
question. We all know that the two main models are stack and
pseudo-registers, but beyond that, for issues like how you encode
constants and addresses and calls and interroutine links, as far as I
know it's all folklore. -John]


Post a followup to this message

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