The GCJ home pageWhat is it?We've written a front end to the GCC compiler which can natively compile both Javatm source and bytecode files. The compiler can also generate class files. This new front end is integrated into the GCC project. What you getThe currently available code consists of several programs:
Making executablesIn order to make full executables, you'll need to link the output of gcj with the appropriate runtime code. See the libgcj page for details on the runtime. Note that you'll want to configure GCC to build libjava; see configuration and build instructions for GCJ. There are also more detailed instructions on compiling Java programs. How to get itThe new Java front end is very easy to download and install. Since it is it fully integrated into GCC, you can simply follow the GCC download and build instructions. Note that you'll want to configure GCC to use the appropriate threads system; see the libgcj page for details. How to try itOnce you've downloaded and installed gcj and libgcj, it is very easy to try a small Java program of your own: gcj --main=HelloWorld -o HelloWorld HelloWorld.java ./HelloWorld Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. The Free Software Foundation, Cygnus Solutions, and Red Hat are independent of Sun Microsystems, Inc. |
|
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.
These pages are maintained by the GCC team.
For questions related to the use of GCC, please consult these web pages and the GCC manuals. If that fails, the gcc-help@gcc.gnu.org mailing list might help.Copyright (C) Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Last modified 2006-06-21 |