The bootloader just reads a hex file from serial and flashes that into its memory. The arduini program on the computer, it first compiles the simple code into real machine hex code, and that hex code is sent throough serial to the bootloader. So really the bootloader doesnt hve much to do with it