first test

Bryce McKinlay mckinlay@redhat.com
Thu Jul 15 01:13:00 GMT 2004


Andrew Cowie wrote:
>On Wed, 2004年07月14日 at 17:28 -0400, Bryce McKinlay wrote:
>>>>Also, you should compile your code with -O2 to get the best performance, 
>>>>>>Out of curiosity, if I compile using gcj with flags -O2 and -g, does
>anything good happen?
>>One gets various opinions about this subject. Obviously the binaries are
>going to be bigger, etc, but does -g negate -On, n>0?
>>[For that matter, I supposed I really aught to know the answer tho this
>for gcc in general too]
>>"-O2 -g" is quite possible, however it can sometimes produce unexpected 
results when debugging. For example you might go to print the value of a 
local variable in gdb and find you can't because that variable got 
optimized away. This is true for both C and Java code.
Regards
Bryce


More information about the Java mailing list

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