Here you are two nice articles how Arduino actually works in background. How it removed friction from microcontroller programming.
- A Tour of the Arduino Internals: How does Hello World actually work?
- Arduino and GCC, compiling and uploading programs using only makefiles
It was also discussed here Is there a way or tutorial for converting Arduino code to C code?Is there a way or tutorial for converting Arduino code to C code?