Optomizations ???

Hi All...

When the 0022 IDE compiles the code, how does it launch the compiler? Do we know which, if any, optomizations switches it uses? These are the -O switches.

Thanks...

Hold down Shift while you click on the Verify button (LH button) and you see a whole lot of stuff along these lines:

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire /var/folders/1A/1AUycq24Ev4PKBlyDOFIG++++TI/-Tmp-/build3876451343873000044.tmp/sketch_apr26a.cpp -o/var/folders/1A/1AUycq24Ev4PKBlyDOFIG++++TI/-Tmp-/build3876451343873000044.tmp/sketch_apr26a.cpp.o

So you can see the optimization is -Os. I don't believe you can easily change it.

Thanks Nick, that's very helpful to know.