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]

Re: first test


Alessandro Di Maria wrote:


Configured with: /Volumes/Work/gcc/src/gcc-3.4.1/configure --prefix=/usr/local/gcc-3.4.1 --enable-shared --disable-checking --enable-languages=c,c++,java --enable-debug
Thread model: posix
gcc version 3.4.1


I'm new to GCJ, normally I develop only on Java and wanted to test GCJ.
So just for curiosity, what does -O0 and -O2 mean?


-O0 = no optimization. This is the default, it means your code builds faster and is easier to debug. -O2 means "optimize my code". It may take a little longer to build, but the result will typically run 2X or more faster.

Note that the libgcj library must be built with -O2 as well. configuring GCC with "--enable-debug" might disable this - I'm not sure.

Bryce


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