 | 可以把Java程序编译为可执行文件
Redhat的一个项目,正在开发中,我前两天发现后Download下来竟然编译脚本错误。
http://sources.redhat.com/java
GCJ is a portable, optimizing, ahead-of-time compiler for the Java
Programming Language. It can compile...
 | Java source code to native machine code,
 | Java source code to Java bytecode (class files),
 | and Java bytecode to native machine code. |
| |
Before executing your compiled application, you must link it with the GCJ
runtime, libgcj, which consists of...
 | the core class libraries,
 | a garbage collector library,
 | an abstraction over the system threads,
 | and, optionally, a bytecode interpreter. |
| | |
The addition of the bytecode interpreter means that GCJ compiled
applications can dynamically load and interpret class files, resulting in
mixed compiled/interpreted systems.
Compiled Java applications are debugged using recent versions of the GNU
debugger, GDB. A short
tutorial on using GDB to debug GCJ-compiled applications is available.
In addition to regular native programming, GCJ can be configured as a
cross-compiler, suitable for embedded systems programming.
Gcj, libgcj, gdb and related tools are Free
Software.
|