Compiling a Program69
Configured with: ../gcc-3.0.4/configure --prefix=/opt/gcc-
3.0.4 --enable-threads=posix
Thread model: posix
gcc version 3.0.4
[rr@conformix 4]$
The compilation of Java programs is completed in many steps. Let us compile the
hello.java
program to build a statically linked
hello
output binary using the following
command. The –
v
switch shows all of the steps during this process.
[rr@conformix 4]$ gcj hello.java --main=HelloWorld -o hello -
static -v
Reading specs from /opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-
gnu/3.0.4/specs
Reading specs from /opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-
gnu/3.0.4/../../../libgcj.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../gcc-3.0.4/configure --prefix=/opt/gcc-
3.0.4 --enable-threads=posix
Thread model: posix
gcc version 3.0.4
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/jc1
hello.java -fuse-divide-subroutine -fuse-boehm-gc -fnon-call-
exceptions -quiet -dumpbase hello.java -g1 -version -o /tmp/
ccHj5WMY.s
GNU Java version 3.0.4 (i686-pc-linux-gnu)
compiled by GNU C version 3.0.4.
as --traditional-format -V -Qy -o /tmp/cchm92Nc.o /tmp/
ccHj5WMY.s
GNU assembler version 2.10.91 (i386-redhat-linux) using BFD
version 2.10.91.0.2
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/jvgenmain
HelloWorldmain /tmp/ccTlFcXz.i
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/cc1 /tmp/
ccTlFcXz.i -quiet -dumpbase HelloWorldmain.c -g1 -version -
fdollars-in-identifiers -o /tmp/ccHj5WMY.s
GNU CPP version 3.0.4 (cpplib) (i386 Linux/ELF)
GNU C version 3.0.4 (i686-pc-linux-gnu)
compiled by GNU C version 3.0.4.
as --traditional-format -V -Qy -o /tmp/ccBgJjpa.o /tmp/
ccHj5WMY.s
GNU assembler version 2.10.91 (i386-redhat-linux) using BFD
version 2.10.91.0.2
/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/collect2 -
m elf_i386 -static -o hello /usr/lib/crt1.o /usr/lib/crti.o /
opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/crtbegin.o -
L/opt/gcc-3.0.4/lib/gcc-lib/i686-pc-linux-gnu/3.0.4 -L/opt/
Next Page >>
<< Previous Page
Back to the Table of Contents