------- Comment #8 from scott at perturb dot org 2010-06-21 19:03 ------- Here is the full command the arduino ide generates when it compiles code. I just took the last command for sketch_jun21a.cpp.o (my code) and added the -v and -save-temps.
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/wiring.c -o/tmp/build4637782385548929954.tmp/wiring.c.o avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/wiring_analog.c -o/tmp/build4637782385548929954.tmp/wiring_analog.c.o avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/pins_arduino.c -o/tmp/build4637782385548929954.tmp/pins_arduino.c.o avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/wiring_shift.c -o/tmp/build4637782385548929954.tmp/wiring_shift.c.o avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/wiring_digital.c -o/tmp/build4637782385548929954.tmp/wiring_digital.c.o avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/wiring_pulse.c -o/tmp/build4637782385548929954.tmp/wiring_pulse.c.o avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/WInterrupts.c -o/tmp/build4637782385548929954.tmp/WInterrupts.c.o avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/HardwareSerial.cpp -o/tmp/build4637782385548929954.tmp/HardwareSerial.cpp.o avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/Print.cpp -o/tmp/build4637782385548929954.tmp/Print.cpp.o avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/WMath.cpp -o/tmp/build4637782385548929954.tmp/WMath.cpp.o avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/main.cpp -o/tmp/build4637782385548929954.tmp/main.cpp.o avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /home/bakers/arduino-0018/hardware/arduino/cores/arduino/Tone.cpp -o/tmp/build4637782385548929954.tmp/Tone.cpp.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/wiring.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/wiring_analog.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/pins_arduino.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/wiring_shift.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/wiring_digital.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/wiring_pulse.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/WInterrupts.c.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/HardwareSerial.cpp.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/Print.cpp.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/WMath.cpp.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/main.cpp.o avr-ar rcs /tmp/build4637782385548929954.tmp/core.a /tmp/build4637782385548929954.tmp/Tone.cpp.o avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=18 -I/home/bakers/arduino-0018/hardware/arduino/cores/arduino /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp -o/tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.o avr-gcc -Os -Wl,--gc-sections -mmcu=atmega1280 -o /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.elf /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.o /tmp/build4637782385548929954.tmp/core.a -L/tmp/build4637782385548929954.tmp -lm avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.elf /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.eep avr-objcopy -O ihex -R .eeprom /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.elf /tmp/build4637782385548929954.tmp/sketch_jun21a.cpp.hex I don't get any *.ii files from that though :( -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44617