This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Development of a j2me compiler


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]