Advantages of Arduino Uno over PIC18F4550

I wonder - does the Arduino/avr compiler do optimizations?

The arduino platform just uses an AVR adapted GNU GCC open source compiler which is an independent open souce group/project, and yes it offers several levels of optimization.

http://gcc.gnu.org/

Lefty