A bootloader is a type of program that is responsible for loading and starting the operating system on a computer. It is usually stored in the computer’s non-volatile memory, such as ROM, EPROM, or flash memory. The bootloader is responsible for initializing the hardware, loading the operating system kernel, and handing off control to the kernel.
For example, when a computer is powered on, the bootloader is the first program that runs. It will check the system configuration and load the necessary drivers to initialize the hardware. It will then locate and load the operating system kernel, and finally hand off control to the kernel, which will then begin the process of starting the operating system.