This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Using mips2java to compile xyzmodem library to java
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: java at gcc dot gnu dot org
- Date: Wed, 19 Nov 2003 09:21:42 +0100
- Subject: Using mips2java to compile xyzmodem library to java
- Organization: Zylin AS
My eyes popped when I read about mips2java.
One projectlet that I'd like to put to bed is to get a pure Java
XYZModem implementation. There are commercial implementations, but thats
no fun! :-)
Can I do this with mips2java?
There are two areas that are unclear to me:
- I'm slightly familiar with newlib from my embedded experiences, but
what interface exists between newlib and the underlying operating system
and?
- How do I create APIs to the generated code?
Here is my rough plan:
- compile a GCC MIPS toolchain w/newlib. Ouch. Hopefully there is a
suitable one that I can use somewhere. Either Linux or Windows cross
compiler would be fine.
- Compile http://www.ohse.de/uwe/software/lrzsz.html with said toolchain
- Run mips2java on the output (lsz.exe, lrz.exe)
- Tweak the output code, so I end up with a Java class that has the
following interface(or equivalent):
- pass in command line arguments
- exposes an InputStream for stdout/stderr
- exposes an OutputStream for stdin
- some way of terminating the app
Ãyvind