Atmel Studio vs. Arduino IDE [SOLVED]

@ James C4S:

  1. I might have put it wrong. Atmel Studio 6 IDE is much better than Arduino IDE. Of course you can compile the same code with both.
  2. Because FemtoOs claims to be able to do so. And an OS facilitates multitasking. No spaghetti code required with an OS.
  3. Seeing the LED blink with approx. twice the rate. I did not put my osciloscope on port 13 :wink:

It is convenient to use the Arduino libraries.
And I am very curious about why it runs faster with Atmel Studio 6 toolchain compiled code.

Edit:
I intercepted the commandline from Arduino IDE to avr-gcc.exe. Nothing special actually. The 'mmcu' is defined by the device choice in the project in Atmel Studio 6. The F_CPU was set as a defined symbol, hence the notation 'DF_CPU'. I also defined the 'ARDUINO'. Still no luck.

-c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\arduino-0023\hardware\arduino\cores\arduino C:\arduino-0023\hardware\arduino\cores\arduino\wiring_shift.c -oC:\Users\Mike\AppData\Local\Temp\build1472107583140147487.tmp\wiring_shift.c.o