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]

Using mips2java to compile xyzmodem library to java


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



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