How to Write GCJ Application
Writing an GCJ application is similar to writing any application.
How to compile a GCJ Application
This is how to compile and link with gcj in one step (Gao 2003):
[user]$ gcj --main=HelloWorld -o HelloWorld HelloWorld.java
How to run a GCJ Application
This is how to run a GCJ Application:
[user]$ ./HelloWorld Hello World!
References
- Gao, Weiqi. (2003). GCJ---The GNU Compiler for Java St. Louis, MO: Object Computing, Inc. Retrieved Monday, April 11, 2005 from http://www.ociweb.com/jnb/jnbJan2003.html.
- GCJ: The GNU Compiler for Java
- Compiling Java with GCJ
0 comments:
Post a Comment