first test

Bryce McKinlay mckinlay@redhat.com
Wed Jul 14 22:48:00 GMT 2004


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /