This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Development of a j2me compiler
- From: Tom Tromey <tromey at redhat dot com>
- To: "Felipe Monteiro de Carvalho" <felipemonteiro dot carvalho at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: 11 Oct 2006 16:48:00 -0600
- Subject: Re: Development of a j2me compiler
- References: <c1b28eb90610111315j6530c75bo913c61eb679a9d46@mail.gmail.com> <c1b28eb90610111429n79e8e008gd4f421dcb15c6ad6@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Felipe" == Felipe Monteiro de Carvalho <felipemonteiro.carvalho@gmail.com> writes:
Felipe> First, what do you use to convert java assembler code into byte code?
Felipe> I found Jasmin project out there, but I think it only works for j2se,
Felipe> and I am specially interrested on targeting the mobile platform.
I don't think J2ME bytecode differs that much, does it? Perhaps just
some change in how verification is handled... I'm not much of a J2ME
expert I'm afraid.
We use jasmin a little bit in Mauve, but generally we just write in
java.
You may want to consider just writing class files directly. This
isn't too hard usually, even from C. There's some C code in gcj and
some C++ code in gcjx (on the now-defunct gcjx branch) which could
show the way. In both cases the code is pretty specific to its
environment, but really that just shows how easy it is to emit
bytecode.
Tom